post https://evaluation-api.azpay.services/v1/receiver#transactionSchedule
Through this endpoint is possible to schedule credit card and boleto transactions
Important!
Keep the body params following the same sequence as you see above!
Example of Schedule
For scheduling transactions once a month,
period
should be 3(month) andfrequency
should be 1
Example of API Response:
{
"transactionId": "39A251AA-1B8D-7ACA-F298-C5DB52416D0E",
"operationId": 7,
"status": 10,
"type": "Credit Card",
"message": "SCHEDULED",
"log": "",
"errorCode": "",
"order": {
"reference": "123456789",
"currency": "986",
"totalAmount": 10000,
"dateTime": "2019-02-15T14:54:43-02:00"
},
"processor": {
"dateStart": "2022-01-01",
"dateEnd": "2022-12-01",
"message": "SCHEDULED",
"payments": {
"1": {
"payment": {
"ticket": "118",
"date": "2022-01-01",
"amount": "10000",
"status": 10,
"statusMessage": "Pagamento Recorrente - Agendado"
}
}
},
"quantityPayments": 1,
"tokenCard": "0de3b2ca40b4c628f4bccd554c0dfa6621d6b77139c6e7e20246fe4bc4f7140d"
}
}
{
"transactionId": null,
"status": {
"code": 409,
"message": "ERROR - XML"
},
"result": {
"error": {
"code": 101,
"action": "XML",
"message": "XML ERROR",
"details": "<![CDATA[Element 'merchantKey': [facet 'minLength'] The value has a length of '0'; this underruns the allowed minimum length of '10'.\n]]>",
"moreInfo": "<![CDATA[Please check fields format and special character.]]>"
}
}
}