diff --git a/api_calls/reference/payment_gateways/create-request.json b/api_calls/reference/payment_gateways/create-request.json new file mode 100644 index 00000000..6f90279a --- /dev/null +++ b/api_calls/reference/payment_gateways/create-request.json @@ -0,0 +1,12 @@ +{ + "payment_gateways": [ + { + "name": "Payment Gateway", + "gateway_name": "stripe", + "credentials": { "login": "login" }, + "supported_cardtypes": ["visa", "mastercard"], + "supported_currencies": ["EUR", "USD"], + "test": false + } + ] +} diff --git a/api_calls/reference/payment_gateways/preferences_payments_read-preferences_payments_write-scope-response.json b/api_calls/reference/payment_gateways/preferences_payments_read-preferences_payments_write-scope-response.json new file mode 100644 index 00000000..aa71ef16 --- /dev/null +++ b/api_calls/reference/payment_gateways/preferences_payments_read-preferences_payments_write-scope-response.json @@ -0,0 +1,24 @@ +{ + "links": { + "payment_gateways.account": "https://www.bookingsync.com/api/v3/accounts/{payment_gateways.account}" + }, + "payment_gateways": [ + { + "links": { + "account": 1 + }, + "id": 1, + "test": false, + "name": "Payment Gateway", + "gateway_name": "Gateway name", + "credentials": "login: 12345", + "supported_cardtypes": ["visa", "mastercard"], + "supported_currencies": ["EUR", "USD"], + "tokenize_credit_card_details": "token", + "created_at": "2017-08-10T09:36:10Z", + "updated_at": "2017-08-10T09:36:10Z" + } + ], + "meta": { + } +} diff --git a/api_calls/reference/payment_gateways/preferences_payments_write-scope-response.json b/api_calls/reference/payment_gateways/preferences_payments_write-scope-response.json new file mode 100644 index 00000000..aa71ef16 --- /dev/null +++ b/api_calls/reference/payment_gateways/preferences_payments_write-scope-response.json @@ -0,0 +1,24 @@ +{ + "links": { + "payment_gateways.account": "https://www.bookingsync.com/api/v3/accounts/{payment_gateways.account}" + }, + "payment_gateways": [ + { + "links": { + "account": 1 + }, + "id": 1, + "test": false, + "name": "Payment Gateway", + "gateway_name": "Gateway name", + "credentials": "login: 12345", + "supported_cardtypes": ["visa", "mastercard"], + "supported_currencies": ["EUR", "USD"], + "tokenize_credit_card_details": "token", + "created_at": "2017-08-10T09:36:10Z", + "updated_at": "2017-08-10T09:36:10Z" + } + ], + "meta": { + } +} diff --git a/api_calls/reference/payment_gateways/update-request.json b/api_calls/reference/payment_gateways/update-request.json new file mode 100644 index 00000000..6f90279a --- /dev/null +++ b/api_calls/reference/payment_gateways/update-request.json @@ -0,0 +1,12 @@ +{ + "payment_gateways": [ + { + "name": "Payment Gateway", + "gateway_name": "stripe", + "credentials": { "login": "login" }, + "supported_cardtypes": ["visa", "mastercard"], + "supported_currencies": ["EUR", "USD"], + "test": false + } + ] +} diff --git a/api_calls/reference/payments/create-request.json b/api_calls/reference/payments/create-request.json index 1f7a69d8..078c6284 100644 --- a/api_calls/reference/payments/create-request.json +++ b/api_calls/reference/payments/create-request.json @@ -13,7 +13,8 @@ "zip": "07671-8254", "city": "East Winifred", "state": "Monatana", - "country_code": "US" + "country_code": "US", + "gateway_id": 1, } ] } diff --git a/api_calls/reference/payments/payments_write_owned-payments_read-payments_write-scope-response.json b/api_calls/reference/payments/payments_write_owned-payments_read-payments_write-scope-response.json index 3f157136..60c27b55 100644 --- a/api_calls/reference/payments/payments_write_owned-payments_read-payments_write-scope-response.json +++ b/api_calls/reference/payments/payments_write_owned-payments_read-payments_write-scope-response.json @@ -1,6 +1,7 @@ { "links": { "payments.account": "https://www.bookingsync.com/api/v3/accounts/{payments.account}", + "payments.payment_gateway": "https://www.bookingsync.com/api/v3/payment_gateways/{payments.payment_gateway}", "payments.bookings": "https://www.bookingsync.com/api/v3/bookings/{payments.bookings}", "payments.bookings_payments": "https://www.bookingsync.com/api/v3/bookings_payments/{payments.bookings_payments}" }, @@ -8,6 +9,7 @@ { "links": { "account": 33, + "payment_gateway": 1, "bookings": [ 21 ], @@ -39,7 +41,8 @@ "zip": "07671-8254", "city": "East Winifred", "state": "Monatana", - "country_code": "US" + "country_code": "US", + "credit_card_token": "credit_card_token" } ] } diff --git a/api_calls/reference/payments/update-request.json b/api_calls/reference/payments/update-request.json index 1f7a69d8..078c6284 100644 --- a/api_calls/reference/payments/update-request.json +++ b/api_calls/reference/payments/update-request.json @@ -13,7 +13,8 @@ "zip": "07671-8254", "city": "East Winifred", "state": "Monatana", - "country_code": "US" + "country_code": "US", + "gateway_id": 1, } ] } diff --git a/content/reference/endpoints/payment_gateways.md b/content/reference/endpoints/payment_gateways.md new file mode 100644 index 00000000..382b3062 --- /dev/null +++ b/content/reference/endpoints/payment_gateways.md @@ -0,0 +1,110 @@ +# Payment Gateways + +1. TOC +{:toc} + +### Parameters +
+