Pular para o conteúdo

Cria um pedido no Paypal

POST
/api/v2/carts/{cart_id}/payment/paypal

Cria um pedido no Paypal para que posteriormente possa receber um pagamento

cart_id
required
string

Quando o pedido é criado no Paypal

object
status
string
id
string
links
Array<object>
object
href
string
rel
string
method
string
Examples
{
"id": "31G50456P87181405",
"status": "CREATED",
"links": [
{
"href": "https://api.sandbox.paypal.com/v2/checkout/orders/31G50456P87181405",
"rel": "self",
"method": "GET"
},
{
"href": "https://www.sandbox.paypal.com/checkoutnow?token=31G50456P87181405",
"rel": "approve",
"method": "GET"
},
{
"href": "https://api.sandbox.paypal.com/v2/checkout/orders/31G50456P87181405",
"rel": "update",
"method": "PATCH"
},
{
"href": "https://api.sandbox.paypal.com/v2/checkout/orders/31G50456P87181405/capture",
"rel": "capture",
"method": "POST"
}
]
}

Quando o pedido não é criado

object
error
string