Skip to content
Open
66 changes: 66 additions & 0 deletions reference/spender.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions src/spender/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
65 changes: 65 additions & 0 deletions src/spender/paths/spender@dwolla@customers.yaml
Original file line number Diff line number Diff line change
@@ -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

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add a description of what this field is.

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':

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can use the existing component for this as well $ref: '../../components/schemas/403.yaml'

description: Not found
content:
application/json:
schema:
$ref: '../../components/schemas/404.yaml'
Loading