Skip to main content
POST
/
api
/
public
/
v1
/
checkout
/
pay-v2
curl --request POST \
--url https://app.tagadapay.com/api/public/v1/checkout/pay-v2 \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"checkoutSessionId": "ch_1234567890",
"paymentInstrumentId": "pi_1234567890"
}'
{
  "order": {
    "id": "ord_1234567890",
    "status": "paid",
    "totalAmount": 2999,
    "currency": "USD"
  },
  "payment": {
    "id": "pay_1234567890",
    "status": "succeeded",
    "amount": 2999,
    "currency": "USD"
  },
  "redirectUrl": "https://mystore.com/thankyou/ord_1234567890"
}

Authorizations

Authorization
string
header
required

Enter your API key as: Bearer your-api-key

Body

application/json
checkoutSessionId
string
required
paymentInstrumentId
string
returnUrl
string
metadata
object
draft
boolean
default:false
initiatedBy
enum<string>
default:customer
Available options:
customer,
merchant
source
enum<string>
default:checkout
Available options:
upsell,
checkout,
offer,
missing_club,
forced

Response

Successful response

The response is of type any.