Asociar Payment Methods a Subscriptions
Changed onAsocia varias Subscriptions a Payment Methods en una sola petición.
Acepta como máximo 500 pares en data. La respuesta es 200 incluso cuando algunos pares fallan, y trae el desglose del lote: load_summary con los conteos por resultado, success_detail con los pares asociados y errors_details con los que fallaron junto a su mensaje de error.
Request
- Base URLhttps://api.trytoku.com
- URLhttps://api.trytoku.com/subscriptions/associate/payment-method/batch
- AuthAPI key in header x-api-key
Headers
Llave de API de una Account, para operar sobre esa Account en lugar de la principal.
Request body
Example request
{
"data": [
{
"id_payment_method": "pm_pBf2NL0d0gvBM7Ei_1E3HIWnTN4W93_O",
"id_subscription": "sub_Yx4Qb1oT8kFhLmN2_9AwZrJvE6Ss0uKd"
}
]
}Response
Successful Response
Example response
{
"errors_details": [
{
"id_payment_method": "pm_pBf2NL0d0gvBM7Ei_1E3HIWnTN4W93_O",
"id_subscription": "sub_Yx4Qb1oT8kFhLmN2_9AwZrJvE6Ss0uKd"
}
],
"success_detail": [
{
"id_payment_method": "pm_pBf2NL0d0gvBM7Ei_1E3HIWnTN4W93_O",
"id_subscription": "sub_Yx4Qb1oT8kFhLmN2_9AwZrJvE6Ss0uKd"
}
]
}Changes
- breaking
request body became required
- breaking
the request property
became required - breaking
the request property
//became required - breaking
the
response's property type changed fromobjectto no type for status - warning
removed the optional property
/from the response with the status - warning
removed the optional property
/from the response with the status - info
api operation id
asociar-múltiples-payment-methods-a-subscriptionsremoved and replaced withassociate_subscription_bulk - info
api tag
Payment Methodsadded - info
added the new optional
headerrequest parameterx-account-key - info
added the new optional request property
// - info
added the new optional request property
// - info
added the new optional request property
// - info
added the new optional request property
// - info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the non-success response with the status
- info
removed the non-success response with the status
- info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added
subschema #1subschema #2to theresponse propertyanyOflist for the response status - info
the response property
became required for the status - info
the
response's property default valuetruewas removed for the status - info
added the required property
to the response with the status
- breaking