{
"data": {
"id": "FID001",
"type": "CheckoutSession",
"attributes": {
"customerData": {
"id": "string",
"email": "string"
},
"isCheckoutCompleted": true
},
"relationships": {
"storeOffer": {
"data": {
"id": "FID001",
"type": "StoreOffer"
}
},
"product": {
"data": {
"id": "FID001",
"type": "Product"
}
},
"subscription": {
"data": {
"id": "FID001",
"type": "Subscription"
}
}
}
}
}
curl --location --request PATCH 'https://api.synap.ac/v3/checkout-sessions/' \
--header 'Content-Type: application/vnd.api+json' \
--data-raw '{
"data": {
"id": "FID001",
"type": "CheckoutSession",
"attributes": {
"customerData": {
"id": "string",
"email": "string"
},
"isCheckoutCompleted": true
},
"relationships": {
"storeOffer": {
"data": {
"id": "FID001",
"type": "StoreOffer"
}
},
"product": {
"data": {
"id": "FID001",
"type": "Product"
}
},
"subscription": {
"data": {
"id": "FID001",
"type": "Subscription"
}
}
}
}
}'
{
"data": {
"id": "FID001",
"type": "CheckoutSession",
"attributes": {
"productIdentifier": "string",
"customerData": {
"id": "string",
"email": "string"
},
"paymentGatewayToken": "string",
"isCheckoutCompleted": true,
"isPaymentSuccessful": true,
"processedAt": "string",
"processingError": "string"
},
"relationships": {
"storeOffer": {
"data": {
"id": "FID001",
"type": "StoreOffer"
}
},
"product": {
"data": {
"id": "FID001",
"type": "Product"
}
},
"subscription": {
"data": {
"id": "FID001",
"type": "Subscription"
}
}
}
}
}