Credit transfer is the flow that allows the marketplace to transfer advertising credits to its sellers. This documentation details the endpoints that the marketplace must implement and the webhook it must consume to integrate with VTEXAds.
GET /checking_account)
seller_id, publisher_id (optional, only applies to cases where an entity manages multiple publishers).{ "total": "1111.00" }
POST /checking_account/transfer)
{
"amount": "10.00",
"seller_id": "SELLER_ID",
"publisher_id": "PUBLISHER_ID",
"transfer_identity_id": "uuid"
}
201 Created
{
"transaction_id": "TRANSACTION_ID",
"status": "success"
}
400 Bad Request
{
"transaction_id": "TRANSACTION_ID",
"status": "failure",
"message": "Reason for refusal"
}
202 Accepted
{
"transaction_id": "TRANSACTION_ID",
"status": "processing"
}
POST https://api-retail-media.newtail.com.br/webhook/marketplace/transfers/:publisher_idx-api-key and x-secret-key.{
"transaction_id": "TRANSACTION_ID",
"status": "success"
}
or
{
"transaction_id": "TRANSACTION_ID",
"status": "failure",
"message": "Problem description"
}
204 No Content