Last active
May 27, 2020 06:24
-
-
Save ThiagoBarradas/a192551e9fc8290cc231f9a0305ec3f7 to your computer and use it in GitHub Desktop.
Curl - Create Order Mundipagg
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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