/api/v1/sdk/purchase/stripe/token/validate/ Validate Stripe purchase
Validates a purchase using the provided Stripe token using the credentials of Stripe in your App Settings inside Adapty Dashboard. If the purchase is valid, the transaction history is imported from Stripe to the profile in Adapty with the specified customer_user_id. If there was no profile with this customer_user_id before — it will be created.
Profile events are generated along the way and imported transactions are counted towards MTR.
Request body
The type of the resource
One of: "stripe_receipt_validation_result"
The ID of your user in your system
Token of a Stripe object that represents a unique purchase. Could either be a token of Stripe's Subscription (sub_XXX) or Payment Intent (pi_XXX)
Responses
Purchase validated successfully
Schema
Response data (null for successful validation)
Example
{
"data": null
} Bad request
Schema
Descriptive information about the error
References the exact location in the request document causing the issue
HTTP status code
Example
{
"errors": [
{
"detail": "none is not an allowed value",
"source": {
"pointer": "/data/attributes/stripe_token"
},
"status": "400"
}
]
} Unauthorized
Schema
Source of the error
Array of error messages
Short error name
HTTP status code
Internal server error
Schema
Source of the error
Array of error messages
Short error name
HTTP status code