Payment Methods
List payment methods for a user
Changed onReturns all available payment methods for the specified user in the specified company.
get/appMarket/v2/paymentMethods
Request
- Base URLhttps://marketplace.appdirect.com/api
- Authnone declared
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Query parameters
ownerIdstring required
ID of the user whose payment method you want to retrieve
companyIdstring required
ID of the company of which the user is a member
Response
OK
Example response
[
{
"id": "e35c2f85-ef92-4a8f-89f0-45b62fb95fa7",
"accountDisplay": "1111",
"default": false,
"paymentMethodType": "CARD",
"properties": {
"cardHolderName": "John Smith",
"expirationMonth": "5",
"expirationYear": "2019",
"brand": "VISA"
},
"billingAddress": {
"street1": "279 Prince St",
"city": "Montreal",
"state": "Quebec",
"country": "CA",
"zip": "H3C 2N4"
}
}
]Changes
- breaking
the response's body type changed from no type to
objectfor status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added
subschema #2: PaymentMethodAppMarketto theresponse propertyallOflist for the response status - info
added the required property
to the response with the status - info
added the required property
to the response with the status
- breaking