post
https://sandcaas.undostres.com.mx/debit/v1/bulkOrderCard
This endpoint initiates a process that generates cards in bulk. The endpoint itself only performs certain validations and saves the request. The cards are subsequently created by a cron, which will notify the ecommerce of the results via a webhook on said ecommerce's end. The client will immediately receive a 200 OK response if the request is valid.
Once the cron job finishes processing, the result will be sent to the e-commerce system via a webhook,
using the structure defined in NotificationMessage.
Webhook notification structure:
{
"referenceBatch": "ddb809a183043042b1a19ccfba571822",
"status": 4,
"numCreated": 30,
"numFailed": 15
}
We just need a status=200 response.
The generated cards are not yet attached to a customer; the /activateCardForCustomer endpoint exists for that purpose.