Skip to content

Instantly share code, notes, and snippets.

@ThiagoBarradas
Last active May 27, 2020 06:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ThiagoBarradas/a192551e9fc8290cc231f9a0305ec3f7 to your computer and use it in GitHub Desktop.
Save ThiagoBarradas/a192551e9fc8290cc231f9a0305ec3f7 to your computer and use it in GitHub Desktop.
Curl - Create Order Mundipagg
json='
{
"items": [
{
"amount": 2990,
"description": "Bola do Kiko",
"quantity": 1
}
],
"customer": {
"name": "Thiago Barradas",
"email": "thiagobarradas@live.com"
},
"payments": [
{
"payment_method": "credit_card",
"credit_card": {
"installments": 3,
"statement_descriptor": "LOJA DO BARRADAS",
"card": {
"number": "4000000000000010",
"holder_name": "THIAGO BARRADAS",
"exp_month": 1,
"exp_year": 24,
"cvv": "123",
"billing_address": {
"street": "Rua dos Bobos",
"number": "0",
"complement": "Casa sem teto",
"neighborhood" : "Bairro Bonito",
"zip_code": "20000000",
"city": "Rio de Janeiro",
"state": "RJ",
"country": "BR"
}
}
}
}
]
}'
curl -X POST https://api.mundipagg.com/core/v1/orders \
-H 'Content-Type: application/json' \
-u 'sk_xxxx:' \
-d "$json"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment