- Manuable API Guía Rápida
- Introducción de API
- Iniciar sesión
- Cotiza y emite tu primera guía
- Cancelaciones
- Limitantes por Paquetería
- Endpoints
Cancelar Guias
Developing
POST
http://ec2-54-188-18-143.us-west-2.compute.amazonaws.com:4000/api/cancellations
Request
Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.Example:
Authorization: Bearer ********************
Body Params application/json
wrong_data
object
required
additional_comments
string
required
label_tokens
string
required
Example
{
"will_no_longer_be_used": {
"additional_comments": "",
"label_tokens": [
"779536915222",
"779536915223"
]
},
"wrong_data": {
"additional_comments": "errores en los datos de direccion de origen",
"label_tokens": [
"779536915224",
"779536915225"
]
}
}
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'http://ec2-54-188-18-143.us-west-2.compute.amazonaws.com:4000/api/cancellations' \
--header 'Content-Type: application/json' \
--data-raw '{
"will_no_longer_be_used": {
"additional_comments": "",
"label_tokens": [
"779536915222",
"779536915223"
]
},
"wrong_data": {
"additional_comments": "errores en los datos de direccion de origen",
"label_tokens": [
"779536915224",
"779536915225"
]
}
}'
Responses
🟢200Success
application/json
Body
object {0}
Example
{
"message": "Guías canceladas correctamente",
"data": [
{
"label_token": "LABEL_TOKEN",
"tracking_number": "TRACKING_NUMBER",
"token": "CANCELLATION_UUID",
"reason": "CANCELLATION_REASON",
"refund_status": "CANCELLATION_REFUND_STATUS",
"additional_info": "CANCELLATION_ADDITIONAL_INFO",
"used_after_cancellation": "CANCELLATION_USED_AFTER_CANCELLATION"
}...
]
}
🟠422bad data