To use Upodi with AltaPay tokens, you must create a payment token via the AltaPay frontend integration.

Upodi Payment

To create a payment method with an AltaPay token, make a POST request to /paymentmethods/{customerId} with a body including the puretoken object:

{
  "type" : 64 /* PureTokenBased = 64 */,
  "makedefault" : "true", /* will make the payment method default */
  "puretoken" : { 
    "token" : " oT34568gYlPgYo9cTmIo192je+KJ7M83zRqABU/ovZaRGZoAUXVel00003ZSkZOiDYGplBlWQLKs+0Fr+C2oeA==+1", /* AltaPay token */
    "paymentgateway" : "altapay"
  }
}