Exemplo Request PIX
unknown
json
4 years ago
1.6 kB
8
Indexable
curl --location --request POST 'https://api.mercadopago.com/v1/payments' \ --header 'Authorization: Bearer APP_USR-6548021211316693-032322-X-533467703' \ --header 'Content-Type: application/json' \ --data-raw '{ "date_of_expiration": "2021-05-18T11:30:00.000-03:00", "transaction_amount": 1.00, "description":"teste pix", "external_reference":"teste pix", "payment_method_id":"pix", "payer": { "email": "compra@testuser.com", "first_name": "Compra", "last_name" : "MP", "identification": { "type": "CPF", "number": "19119119100" } }, "notification_url":"https://webhook.site/c93ae230-de92-4401-9604-089ba78085e9", "additional_info": { "items": [ { "id": "989888999889999", "title": "Produto de Teste", "quantity": 1, "unit_price": 1, "category_id": "computing" } ], "payer": { "phone": { "area_code": "19", "number": "12345678" }, "first_name": "Nome", "last_name": "Sobrenome", "address": { "zip_code": "13277900", "street_name": "Rua Rua Doutor Alcides Gomes Miranda 251", "street_number": "123A" } }, "shipments": { "receiver_address": { "zip_code": "13277900", "street_name": "Rua Rua Doutor Alcides Gomes Miranda 251", "street_number": "123A" } } } }'
Editor is loading...