Create a card
curl --request POST \
--url https://app.payemcard.com/api/partner/v1/cards \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{}'import requests
url = "https://app.payemcard.com/api/partner/v1/cards"
payload = {}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({})
};
fetch('https://app.payemcard.com/api/partner/v1/cards', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"id": 123
}cards
Create a card
Endpoint to create a card.
POST
/
api
/
partner
/
v1
/
cards
Create a card
curl --request POST \
--url https://app.payemcard.com/api/partner/v1/cards \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{}'import requests
url = "https://app.payemcard.com/api/partner/v1/cards"
payload = {}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({})
};
fetch('https://app.payemcard.com/api/partner/v1/cards', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"id": 123
}Authorizations
Short-lived OAuth 2.0 access token. Tokens expire after five minutes.
Headers
Optional key for safely replaying a card creation request with the same payload.
Body
application/jsonapplication/x-www-form-urlencodedmultipart/form-data
EMPLOYEE- EMPLOYEEVENDOR- VENDORSINGLE-USE- SINGLE_USE
Available options:
EMPLOYEE, VENDOR, SINGLE-USE Defines details about the employee associated with the card. Required when type is EMPLOYEE; must resolve via id or email to exactly one active user.
Show child attributes
Show child attributes
Defines details about the vendor associated with the card. Required when type is VENDOR; must resolve via id or name to exactly one active vendor.
Show child attributes
Show child attributes
Defines details about the subsidiary associated with the card. Required when type is VENDOR or SINGLE-USE; must resolve via id or name to exactly one active subsidiary.
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Response
200 - application/json
