v1
latestOpenAPI 3.1.02026-07-241040774.6 KBCriar pedido com meio de pagamento Checkout multimeios
Neste caso, para habilitar o multimeios, você precisa incluir o array accepted_multi_payment_methods dentro do objeto checkout. Desta maneira você pode fornecer ao seu cliente final a possibilidade de pagar com dois cartões ou cartão mais boleto.
post/orders
Request body
Response
200
Example response
{
"id": "or_ywXmL2LCQuYlZ5O3",
"code": "1V82IK0C81",
"amount": 3000,
"currency": "BRL",
"items": [
{
"id": "oi_l0qy5l6FzBI6ONYQ",
"description": "Chaveiro do Teressact",
"amount": 3000,
"quantity": 1,
"status": "active",
"created_at": "2018-06-18T18:31:16Z",
"updated_at": "2018-06-18T18:31:16Z"
}
],
"customer": {
"id": "cus_qa9WbRztpc7bKpyN",
"name": "Tony Stark",
"created_at": "2018-06-18T18:31:09Z",
"updated_at": "2018-06-18T18:31:09Z"
},
"status": "pending",
"created_at": "2018-06-18T18:31:14Z",
"updated_at": "2018-06-18T18:31:14Z",
"checkouts": [
{
"id": "chk_lJrO6LLcGQh46EqX",
"amount": 3000,
"status": "open",
"success_url": "https://www.mundipagg.com",
"payment_url": "http://localhost:56351/checkout/v1/orders/chk_lJrO6LLcGQh46EqX",
"customer_editable": true,
"billing_address_editable": true,
"created_at": "2018-06-18T18:31:18Z",
"updated_at": "2018-06-18T18:31:18Z",
"expires_at": "2018-06-18T20:31:18Z",
"accepted_payment_methods": [
"credit_card"
],
"accepted_multi_payment_methods": [
[
"credit_card"
]
],
"customer": {
"id": "cus_qa9WbRztpc7bKpyN",
"name": "Tony Stark",
"created_at": "2018-06-18T18:31:09Z",
"updated_at": "2018-06-18T18:31:09Z"
},
"credit_card": {
"capture": true,
"installments": [
{
"number": 1,
"total": 3000
}
]
},
"boleto": {
"due_at": "2020-07-25T00:00:00Z",
"instructions": "Pagar até o vencimento"
},
"currency": "BRL"
}
]
}