Choose crypto

Use this method to chose the payment currency for your order

post
Choose Crypto

https://qa-v2-order-api.citypay.io/orders/api/:token
Request
Response
Request
Headers
bearer_token
required
string
token is obtained from the login method
Body Parameters
coin
optional
string
write the cypto currency code
Response
200: OK
{
"status": 1,
"data": {
"companyName": "Company 1",
"id": 2876,
"customerId": 115,
"token": "token1",
"coin": "Bitcoin",
"coinBaseName": "btc",
"exchangeRate": 50795.91,
"amountFiat": "5.00",
"amount": 0.00009843,
"dueDate": null,
"currency": {
"id": 2,
"currency": "US Dollar",
"abbreviation": "USD"
},
"createdAt": "2021-04-07 09:15",
"createdAtMiliseconds": 1617786773000,
"type": "Order",
"expiresAt": 1617790551102,
"expirationTime": 3600102,
"email": null,
"address": "2N5FN3p5fT7mFzpDKXmuE9xxf2xBfzwuVWx",
"qrCode": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKQAAACkCAYAAAAZtYVBAAAAAklEQVR4AewaftIAAAYgSURBVO3BQY4cy5LAQDLQ978yR0tfJZCoaineHzezP1jrEoe1LnJY6yKHtS5yWOsih7UucljrIoe1LnJY6yKHtS5yWOsih7UucljrIoe1LnJY6yKHtS7yw4dU/qaKf0nljYpJZap4Q+VJxaTyN1V84rDWRQ5rXeSw1kV++LKKb1J5ovKkYlKZKiaVqeKNiknlDZWp4knFGxXfpPJNh7UucljrIoe1LvLDL1N5o+KNiknlDZWp4knFb6r4m1TeqPhNh7UucljrIoe1LvLD/3MVk8pUMalMFZPKVDGpvKEyVfwvO6x1kcNaFzmsdZEf/uNUpopJZar4RMU3qUwVT1Smiv8lh7UucljrIoe1LvLDL6v4TRWTylQxqfymijcqnlRMKpPKVPFGxU0Oa13ksNZFDmtd5IcvU/mbVKaKSWWqmFSmikllqphUpopJZaqYVKaKSWWqmFTeULnZYa2LHNa6yGGti/zwoYp/qeJJxRsqn1CZKiaVqWJS+aaK/5LDWhc5rHWRw1oX+eFDKlPFpDJVTCpTxaQyVTxRmSomlaliUpkqJpVPVEwqTyomlW9Sm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CZKj6h8psOa13ksNZFDmtd5Icvq/gmld9UMalMFZPKVDGpTBWTyhOVb6p4o+KNim86rHWRw1oXOax1kR9+mcobFW+oTBVTxaTypOITFZPKVPFEZap4ojKp/KaK33RY6yKHtS5yWOsiP/zHVTxReUPlb1J5Q+VJxROVJypTxROVqeITh7UucljrIoe1LvLDf5zKk4pJ5Y2KSWVS+Zcqnqi8UfEvHda6yGGtixzWusgPv6ziN1U8UZkqJpWp4o2KSeU3VbxR8UTlDZWp4psOa13ksNZFDmtd5IcvU/mbVN5QmSomlanijYonKlPFGypPKp6oTBWfUJkqPnFY6yKHtS5yWOsi9gdrXeKw1kUOa13ksNZFDmtd5LDWRQ5rXeSw1kUOa13ksNZFDmtd5LDWRQ5rXeSw1kUOa13ksNZF/g+ftRRAv2iUjgAAAABJRU5ErkJggg==",
"status": {
"code": "IN_PROGRESS",
"label": "IN_PROGRESS"
},
"urls": {
"callbackUrl": "https://qa.citypay.io/access",
"successUrl": "https://qa.citypay.io/access",
"cancelUrl": "https://qa.citypay.io/access"
},
"transactions": []
}
}

‚Äč