diff --git a/reference/spender.yaml b/reference/spender.yaml index 1e935e31f..48327fbca 100644 --- a/reference/spender.yaml +++ b/reference/spender.yaml @@ -8252,6 +8252,72 @@ paths: application/json: schema: $ref: '#/components/schemas/403' + /spender/dwolla/customers: + post: + tags: + - Dwolla Customers + summary: Create a receive-only Dwolla customer + description: | + Create a receive-only Dwolla customer for the authenticated spender. + operationId: dwolla_spender_customer_create + requestBody: + required: true + content: + application/json: + schema: + type: object + additionalProperties: false + required: + - data + properties: + data: + type: object + additionalProperties: false + properties: {} + responses: + '200': + description: OK + content: + application/json: + schema: + type: object + additionalProperties: false + required: + - data + properties: + data: + type: object + additionalProperties: false + required: + - external_id + properties: + external_id: + type: string + description: Unique identifier of the Dwolla customer. + '400': + description: Bad request + content: + application/json: + schema: + $ref: '#/components/schemas/400' + '401': + description: Unauthorized request + content: + application/json: + schema: + $ref: '#/components/schemas/401' + '403': + description: Forbidden + content: + application/json: + schema: + $ref: '#/components/schemas/403' + '404': + description: Not found + content: + application/json: + schema: + $ref: '#/components/schemas/404' /spender/expenses/export_configurations: get: x-internal: false diff --git a/src/spender/openapi.yaml b/src/spender/openapi.yaml index f78e7745f..edc0634f3 100644 --- a/src/spender/openapi.yaml +++ b/src/spender/openapi.yaml @@ -422,6 +422,8 @@ paths: $ref: paths/spender@advance_requests@custom_fields.yaml /spender/dwolla_customers: $ref: paths/spender@dwolla_customers.yaml + /spender/dwolla/customers: + $ref: paths/spender@dwolla@customers.yaml /spender/expenses/export_configurations: $ref: paths/spender@expenses@export_configurations.yaml /spender/expenses/export_configurations/delete/bulk: diff --git a/src/spender/paths/spender@dwolla@customers.yaml b/src/spender/paths/spender@dwolla@customers.yaml new file mode 100644 index 000000000..5588b754c --- /dev/null +++ b/src/spender/paths/spender@dwolla@customers.yaml @@ -0,0 +1,65 @@ +post: + tags: + - Dwolla Customers + summary: Create a receive-only Dwolla customer + description: | + Create a receive-only Dwolla customer for the authenticated spender. + operationId: dwolla_spender_customer_create + requestBody: + required: true + content: + application/json: + schema: + type: object + additionalProperties: false + required: + - data + properties: + data: + type: object + additionalProperties: false + properties: {} + responses: + '200': + description: OK + content: + application/json: + schema: + type: object + additionalProperties: false + required: + - data + properties: + data: + type: object + additionalProperties: false + required: + - external_id + properties: + external_id: + type: string + description: Unique identifier of the Dwolla customer. + '400': + description: Bad request + content: + application/json: + schema: + $ref: '../../components/schemas/400.yaml' + '401': + description: Unauthorized request + content: + application/json: + schema: + $ref: '../../components/schemas/401.yaml' + '403': + description: Forbidden + content: + application/json: + schema: + $ref: '../../components/schemas/403.yaml' + '404': + description: Not found + content: + application/json: + schema: + $ref: '../../components/schemas/404.yaml'