-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathPaymentMethods.apib
67 lines (42 loc) · 1.63 KB
/
PaymentMethods.apib
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
# Group Payment Accounts
Placeholder for Payment Accounts endpoint documentation
## Payment account [/payment/accounts]
### Get payment accounts [GET]
**Response Codes**
- 200 - OK
- 401 - Unauthorized
+ Response 200 (application/json)
+ Attributes (PaymentAccounts)
## Get details about a payment account [GET /payment/accounts/{paymentAccountId}]
- 202 - Accepted
- 400 - Bad Request - The PaymentAccountId is in an invalid format.
- 401 - Unauthorized - You are not authorized to access the account.
- 404 - Not found - No payment account is found with this id.
+ Request (application/json)
+ Attributes
+ paymentAccountId: `d6d1817e-98ee-4600-b82b-f1aace2abea5` (string) - Payment account Id
+ Response 200 (application/json)
+ Attributes (PaymentAccount)
### Create a new payment account [POST]
- nameOnCard required for 2
- cvv required for 3
- for countries 4, issueNumber, startMonth and startYear is optional
**Possible Response Codes**
- 202 - Accepted
- 400 - Bad Request
- 401 - Unauthorized
- 409 - Conflict
+ Request (application/json)
+ Attributes (CreatePaymentAccount)
+ Response 202 (application/json)
+ Headers
Location: https://api.paybyphone.com/events/workflow/d92cfe7d-dd59-49d6-be1a-a3b3bb5d3e6a
## Delete a payment account [DELETE /payment/accounts/{paymentAccountId}]
- 202 - Accepted
- 400 - Bad Request
- 401 - Unauthorized
- 404 - Not found
+ Request (application/json)
+ Attributes
+ paymentAccountId: `d6d1817e-98ee-4600-b82b-f1aace2abea5` (string) - Payment account Id
+ Response 202 (application/json)