{"items":[{"type":"link","label":"Payments API","link":"/openapi/payments_api","routeSlug":"/openapi/payments_api","content":{"contentType":"overview","meta":{"name":"Payments API"},"children":[{"nodeType":"container","panels":[{"title":"Download OpenAPI description","titleTranslationKey":"download.description.title","children":[{"kind":"download","label":"payments_api.json","url":"/_bundle/openapi/payments_api.json?download"},{"kind":"download","label":"payments_api.yaml","url":"/_bundle/openapi/payments_api.yaml?download"}]},{"title":"Overview","titleTranslationKey":"info.title","children":[{"kind":"externallink","title":"URL","titleTranslationKey":"info.contact.url","label":"https://brex.com","url":"https://brex.com"},{"kind":"email","title":"Admin","email":"developer-support@brex.com","label":"developer-support@brex.com","withCopyButton":true,"copyContent":"developer-support@brex.com"}]},{"title":"Languages","titleTranslationKey":"languages.title","children":[{"kind":"languages","options":[{"key":"curl","title":"curl","lang":"curl"},{"key":"javascript","title":"JavaScript","lang":"JavaScript"},{"key":"node","title":"Node.js","lang":"Node.js"},{"key":"python","title":"Python","lang":"Python"},{"key":"ruby","title":"Ruby","lang":"Ruby"},{"key":"java","title":"Java","lang":"Java"}]}]},{"title":"Servers","titleTranslationKey":"servers.title","children":[{"kind":"servers","servers":[{"url":"https://api.brex.com","description":"Production"},{"url":"https://api-staging.brex.com","description":"Staging (Note: This is not a sandbox. It will not work with customer tokens.)"}],"mode":"default"}]}],"children":[{"nodeType":"overview-section-wrapper","children":[{"nodeType":"header","level":1,"label":"Payments API (1.0)","showPageActions":true},{"nodeType":"overview-section-wrapper","children":[{"nodeType":"markdoc","content":"The payments API allows you to initiate and manage payments and vendors from your Brex business accounts."}],"sectionId":"/"}],"sectionId":"/"}]}]}},{"type":"group","label":"Vendors","link":"/openapi/payments_api/vendors","routeSlug":"/openapi/payments_api/vendors","items":[{"label":"\nLists vendors \n","deprecated":false,"httpVerb":"get","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/openapi/payments_api/vendors/listvendors","routeSlug":"/openapi/payments_api/vendors/listvendors","metadata":{"seo":{"title":"\nLists vendors \n","description":"This endpoint lists all existing vendors for an account. Takes an optional parameter to match by vendor name."}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"sourceId":"listVendors","name":"\nLists vendors \n","isWebhook":false,"pointer":"/paths/~1v1~1vendors/get","hasSamples":false},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"\nLists vendors \n","isWebhook":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"markdoc","content":"\nThis endpoint lists all existing vendors for an account.\nTakes an optional parameter to match by vendor name.\n"},{"nodeType":"security","requirements":[{"schemes":[{"name":"OAuth2","scopes":["vendors.readonly"],"type":"oauth2","description":"OAuth2 security scheme","flows":{"authorizationCode":{"authorizationUrl":"https://accounts-api.brex.com/oauth2/default/v1/authorize","tokenUrl":"https://accounts-api.brex.com/oauth2/default/v1/token","scopes":{"openid":"openid","offline_access":"offline access","vendors":"View and manage vendor data","vendors.readonly":"View vendor data","transfers":"View and manage transfer data","transfers.readonly":"View transfer data","incoming_transfers":"View and manage incoming transfer data","linked_accounts.readonly":"View linked accounts"}}}}]}]},{"nodeType":"item-content","variant":"query","label":"Query","labelTranslationKey":"query","parameters":[{"name":"cursor","in":"query","schemaId":"schema_0"},{"name":"limit","in":"query","schemaId":"schema_1"},{"name":"name","in":"query","schemaId":"schema_0"}],"pointer":"/paths/~1v1~1vendors/get/parameters"}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"GET","path":"/v1/vendors","servers":[{"url":"https://api.brex.com","description":"Production"},{"url":"https://api-staging.brex.com","description":"Staging (Note: This is not a sandbox. It will not work with customer tokens.)"}],"parameters":{"path":[],"query":[{"name":"cursor","in":"query","schemaId":"schema_0"},{"name":"limit","in":"query","schemaId":"schema_1"},{"name":"name","in":"query","schemaId":"schema_0"}],"querystring":[],"header":[],"cookie":[]},"security":[{"schemes":[{"id":"OAuth2","type":"oauth2","flows":{"authorizationCode":{"authorizationUrl":"https://accounts-api.brex.com/oauth2/default/v1/authorize","tokenUrl":"https://accounts-api.brex.com/oauth2/default/v1/token","scopes":{"openid":"openid","offline_access":"offline access","vendors":"View and manage vendor data","vendors.readonly":"View vendor data","transfers":"View and manage transfer data","transfers.readonly":"View transfer data","incoming_transfers":"View and manage incoming transfer data","linked_accounts.readonly":"View linked accounts"}}}}],"scopes":["vendors.readonly"]}],"responseCodes":["200","400","401","403"],"pointer":"/v1/vendors","href":"vendors/listvendors","openApiOperationId":"listVendors","summary":"\nLists vendors \n"},"isWebhook":false,"hideReplay":false,"servers":[{"url":"https://api.brex.com","description":"Production"},{"url":"https://api-staging.brex.com","description":"Staging (Note: This is not a sandbox. It will not work with customer tokens.)"}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"200","description":"Returns a list of vendor objects.","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/Page_VendorResponse_"}},"schemaId":"components/schemas/Page_VendorResponse_"},{"code":"400","description":"Bad request"},{"code":"401","description":"Unauthorized"},{"code":"403","description":"Forbidden"}],"pointer":"/paths/~1v1~1vendors/get/responses"}],"panels":[{"children":[{"kind":"response","responseCodes":[{"code":"200","schemaId":"components/schemas/Page_VendorResponse_","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/Page_VendorResponse_"}}},{"code":"400"},{"code":"401"},{"code":"403"}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/vendors/listvendors"}],"panels":[]}]},"httpPath":"/v1/vendors"},{"label":"\nCreate vendor\n","deprecated":false,"httpVerb":"post","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/openapi/payments_api/vendors/createvendor","routeSlug":"/openapi/payments_api/vendors/createvendor","metadata":{"seo":{"title":"\nCreate vendor\n","description":"This endpoint creates a new vendor."}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"sourceId":"createVendor","name":"\nCreate vendor\n","isWebhook":false,"pointer":"/paths/~1v1~1vendors/post","hasSamples":true},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"\nCreate vendor\n","isWebhook":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"markdoc","content":"\nThis endpoint creates a new vendor.\n"},{"nodeType":"security","requirements":[{"schemes":[{"name":"OAuth2","scopes":["vendors"],"type":"oauth2","description":"OAuth2 security scheme","flows":{"authorizationCode":{"authorizationUrl":"https://accounts-api.brex.com/oauth2/default/v1/authorize","tokenUrl":"https://accounts-api.brex.com/oauth2/default/v1/token","scopes":{"openid":"openid","offline_access":"offline access","vendors":"View and manage vendor data","vendors.readonly":"View vendor data","transfers":"View and manage transfer data","transfers.readonly":"View transfer data","incoming_transfers":"View and manage incoming transfer data","linked_accounts.readonly":"View linked accounts"}}}}]}]},{"nodeType":"item-content","variant":"headers","label":"Headers","labelTranslationKey":"header","parameters":[{"name":"Idempotency-Key","in":"header","schemaId":"schema_2","required":true}],"pointer":"/paths/~1v1~1vendors/post/parameters"},{"nodeType":"item-content","variant":"body","label":"Request Body","labelTranslationKey":"body","required":true,"mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"components/schemas/CreateVendorRequest"}},"schemaId":"components/schemas/CreateVendorRequest","pointer":"/paths/~1v1~1vendors/post/requestBody"}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"POST","path":"/v1/vendors","servers":[{"url":"https://api.brex.com","description":"Production"},{"url":"https://api-staging.brex.com","description":"Staging (Note: This is not a sandbox. It will not work with customer tokens.)"}],"parameters":{"path":[],"query":[],"querystring":[],"header":[{"name":"Idempotency-Key","in":"header","required":true,"schemaId":"schema_2"}],"cookie":[]},"security":[{"schemes":[{"id":"OAuth2","type":"oauth2","flows":{"authorizationCode":{"authorizationUrl":"https://accounts-api.brex.com/oauth2/default/v1/authorize","tokenUrl":"https://accounts-api.brex.com/oauth2/default/v1/token","scopes":{"openid":"openid","offline_access":"offline access","vendors":"View and manage vendor data","vendors.readonly":"View vendor data","transfers":"View and manage transfer data","transfers.readonly":"View transfer data","incoming_transfers":"View and manage incoming transfer data","linked_accounts.readonly":"View linked accounts"}}}}],"scopes":["vendors"]}],"requestBody":{"application/json":{"schemaId":"components/schemas/CreateVendorRequest"}},"responseCodes":["200"],"pointer":"/v1/vendors","href":"vendors/createvendor","openApiOperationId":"createVendor","summary":"\nCreate vendor\n"},"isWebhook":false,"hideReplay":false,"servers":[{"url":"https://api.brex.com","description":"Production"},{"url":"https://api-staging.brex.com","description":"Staging (Note: This is not a sandbox. It will not work with customer tokens.)"}],"schemaId":"components/schemas/CreateVendorRequest","mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"components/schemas/CreateVendorRequest"}},"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"200","description":"createVendor 200 response","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/VendorResponse"}},"schemaId":"components/schemas/VendorResponse"}],"pointer":"/paths/~1v1~1vendors/post/responses"}],"panels":[{"children":[{"kind":"response","responseCodes":[{"code":"200","schemaId":"components/schemas/VendorResponse","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/VendorResponse"}}}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/vendors/createvendor"}],"panels":[]}]},"httpPath":"/v1/vendors"},{"label":"\nGet vendor\n","deprecated":false,"httpVerb":"get","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/openapi/payments_api/vendors/getvendorbyid","routeSlug":"/openapi/payments_api/vendors/getvendorbyid","metadata":{"seo":{"title":"\nGet vendor\n","description":"This endpoint gets a vendor by ID."}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"sourceId":"getVendorById","name":"\nGet vendor\n","isWebhook":false,"pointer":"/paths/~1v1~1vendors~1{id}/get","hasSamples":false},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"\nGet vendor\n","isWebhook":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"markdoc","content":"\nThis endpoint gets a vendor by ID.\n"},{"nodeType":"security","requirements":[{"schemes":[{"name":"OAuth2","scopes":["vendors.readonly"],"type":"oauth2","description":"OAuth2 security scheme","flows":{"authorizationCode":{"authorizationUrl":"https://accounts-api.brex.com/oauth2/default/v1/authorize","tokenUrl":"https://accounts-api.brex.com/oauth2/default/v1/token","scopes":{"openid":"openid","offline_access":"offline access","vendors":"View and manage vendor data","vendors.readonly":"View vendor data","transfers":"View and manage transfer data","transfers.readonly":"View transfer data","incoming_transfers":"View and manage incoming transfer data","linked_accounts.readonly":"View linked accounts"}}}}]}]},{"nodeType":"item-content","variant":"path","label":"Path","labelTranslationKey":"path","parameters":[{"name":"id","in":"path","schemaId":"schema_2","required":true}],"pointer":"/paths/~1v1~1vendors~1{id}/get/parameters"}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"GET","path":"/v1/vendors/{id}","servers":[{"url":"https://api.brex.com","description":"Production"},{"url":"https://api-staging.brex.com","description":"Staging (Note: This is not a sandbox. It will not work with customer tokens.)"}],"parameters":{"path":[{"name":"id","in":"path","required":true,"schemaId":"schema_2"}],"query":[],"querystring":[],"header":[],"cookie":[]},"security":[{"schemes":[{"id":"OAuth2","type":"oauth2","flows":{"authorizationCode":{"authorizationUrl":"https://accounts-api.brex.com/oauth2/default/v1/authorize","tokenUrl":"https://accounts-api.brex.com/oauth2/default/v1/token","scopes":{"openid":"openid","offline_access":"offline access","vendors":"View and manage vendor data","vendors.readonly":"View vendor data","transfers":"View and manage transfer data","transfers.readonly":"View transfer data","incoming_transfers":"View and manage incoming transfer data","linked_accounts.readonly":"View linked accounts"}}}}],"scopes":["vendors.readonly"]}],"responseCodes":["200","400","401","403","500"],"pointer":"/v1/vendors/{id}","href":"vendors/getvendorbyid","openApiOperationId":"getVendorById","summary":"\nGet vendor\n"},"isWebhook":false,"hideReplay":false,"servers":[{"url":"https://api.brex.com","description":"Production"},{"url":"https://api-staging.brex.com","description":"Staging (Note: This is not a sandbox. It will not work with customer tokens.)"}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"200","description":"Returns a vendor object.","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/VendorResponse"}},"schemaId":"components/schemas/VendorResponse"},{"code":"400","description":"Bad request"},{"code":"401","description":"Unauthorized"},{"code":"403","description":"Forbidden"},{"code":"500","description":"Internal server error"}],"pointer":"/paths/~1v1~1vendors~1{id}/get/responses"}],"panels":[{"children":[{"kind":"response","responseCodes":[{"code":"200","schemaId":"components/schemas/VendorResponse","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/VendorResponse"}}},{"code":"400"},{"code":"401"},{"code":"403"},{"code":"500"}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/vendors/getvendorbyid"}],"panels":[]}]},"httpPath":"/v1/vendors/{id}"},{"label":"Update vendor","deprecated":false,"httpVerb":"put","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/openapi/payments_api/vendors/updatevendor","routeSlug":"/openapi/payments_api/vendors/updatevendor","metadata":{"seo":{"title":"Update vendor","description":"Updates an existing vendor by ID."}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"sourceId":"updateVendor","name":"Update vendor","isWebhook":false,"pointer":"/paths/~1v1~1vendors~1{id}/put","hasSamples":true},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Update vendor","isWebhook":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"markdoc","content":"\n    Updates an existing vendor by ID.\n"},{"nodeType":"security","requirements":[{"schemes":[{"name":"OAuth2","scopes":["vendors"],"type":"oauth2","description":"OAuth2 security scheme","flows":{"authorizationCode":{"authorizationUrl":"https://accounts-api.brex.com/oauth2/default/v1/authorize","tokenUrl":"https://accounts-api.brex.com/oauth2/default/v1/token","scopes":{"openid":"openid","offline_access":"offline access","vendors":"View and manage vendor data","vendors.readonly":"View vendor data","transfers":"View and manage transfer data","transfers.readonly":"View transfer data","incoming_transfers":"View and manage incoming transfer data","linked_accounts.readonly":"View linked accounts"}}}}]}]},{"nodeType":"item-content","variant":"path","label":"Path","labelTranslationKey":"path","parameters":[{"name":"id","in":"path","schemaId":"schema_2","required":true}],"pointer":"/paths/~1v1~1vendors~1{id}/put/parameters"},{"nodeType":"item-content","variant":"headers","label":"Headers","labelTranslationKey":"header","parameters":[{"name":"Idempotency-Key","in":"header","schemaId":"schema_0"}],"pointer":"/paths/~1v1~1vendors~1{id}/put/parameters"},{"nodeType":"item-content","variant":"body","label":"Request Body","labelTranslationKey":"body","required":true,"mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"components/schemas/UpdateVendorRequest"}},"schemaId":"components/schemas/UpdateVendorRequest","pointer":"/paths/~1v1~1vendors~1{id}/put/requestBody"}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"PUT","path":"/v1/vendors/{id}","servers":[{"url":"https://api.brex.com","description":"Production"},{"url":"https://api-staging.brex.com","description":"Staging (Note: This is not a sandbox. It will not work with customer tokens.)"}],"parameters":{"path":[{"name":"id","in":"path","required":true,"schemaId":"schema_2"}],"query":[],"querystring":[],"header":[{"name":"Idempotency-Key","in":"header","schemaId":"schema_0"}],"cookie":[]},"security":[{"schemes":[{"id":"OAuth2","type":"oauth2","flows":{"authorizationCode":{"authorizationUrl":"https://accounts-api.brex.com/oauth2/default/v1/authorize","tokenUrl":"https://accounts-api.brex.com/oauth2/default/v1/token","scopes":{"openid":"openid","offline_access":"offline access","vendors":"View and manage vendor data","vendors.readonly":"View vendor data","transfers":"View and manage transfer data","transfers.readonly":"View transfer data","incoming_transfers":"View and manage incoming transfer data","linked_accounts.readonly":"View linked accounts"}}}}],"scopes":["vendors"]}],"requestBody":{"application/json":{"schemaId":"components/schemas/UpdateVendorRequest"}},"responseCodes":["200"],"pointer":"/v1/vendors/{id}","href":"vendors/updatevendor","openApiOperationId":"updateVendor","summary":"Update vendor"},"isWebhook":false,"hideReplay":false,"servers":[{"url":"https://api.brex.com","description":"Production"},{"url":"https://api-staging.brex.com","description":"Staging (Note: This is not a sandbox. It will not work with customer tokens.)"}],"schemaId":"components/schemas/UpdateVendorRequest","mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"components/schemas/UpdateVendorRequest"}},"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"200","description":"updateVendor 200 response","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/VendorResponse"}},"schemaId":"components/schemas/VendorResponse"}],"pointer":"/paths/~1v1~1vendors~1{id}/put/responses"}],"panels":[{"children":[{"kind":"response","responseCodes":[{"code":"200","schemaId":"components/schemas/VendorResponse","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/VendorResponse"}}}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/vendors/updatevendor"}],"panels":[]}]},"httpPath":"/v1/vendors/{id}"},{"label":"\nDelete vendor.\n","deprecated":false,"httpVerb":"delete","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/openapi/payments_api/vendors/deletevendor","routeSlug":"/openapi/payments_api/vendors/deletevendor","metadata":{"seo":{"title":"\nDelete vendor.\n","description":"This endpoint deletes a vendor by ID."}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"sourceId":"deleteVendor","name":"\nDelete vendor.\n","isWebhook":false,"pointer":"/paths/~1v1~1vendors~1{id}/delete","hasSamples":false},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"\nDelete vendor.\n","isWebhook":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"markdoc","content":"\nThis endpoint deletes a vendor by ID.\n"},{"nodeType":"security","requirements":[{"schemes":[{"name":"OAuth2","scopes":["vendors"],"type":"oauth2","description":"OAuth2 security scheme","flows":{"authorizationCode":{"authorizationUrl":"https://accounts-api.brex.com/oauth2/default/v1/authorize","tokenUrl":"https://accounts-api.brex.com/oauth2/default/v1/token","scopes":{"openid":"openid","offline_access":"offline access","vendors":"View and manage vendor data","vendors.readonly":"View vendor data","transfers":"View and manage transfer data","transfers.readonly":"View transfer data","incoming_transfers":"View and manage incoming transfer data","linked_accounts.readonly":"View linked accounts"}}}}]}]},{"nodeType":"item-content","variant":"path","label":"Path","labelTranslationKey":"path","parameters":[{"name":"id","in":"path","schemaId":"schema_2","required":true}],"pointer":"/paths/~1v1~1vendors~1{id}/delete/parameters"}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"DELETE","path":"/v1/vendors/{id}","servers":[{"url":"https://api.brex.com","description":"Production"},{"url":"https://api-staging.brex.com","description":"Staging (Note: This is not a sandbox. It will not work with customer tokens.)"}],"parameters":{"path":[{"name":"id","in":"path","required":true,"schemaId":"schema_2"}],"query":[],"querystring":[],"header":[],"cookie":[]},"security":[{"schemes":[{"id":"OAuth2","type":"oauth2","flows":{"authorizationCode":{"authorizationUrl":"https://accounts-api.brex.com/oauth2/default/v1/authorize","tokenUrl":"https://accounts-api.brex.com/oauth2/default/v1/token","scopes":{"openid":"openid","offline_access":"offline access","vendors":"View and manage vendor data","vendors.readonly":"View vendor data","transfers":"View and manage transfer data","transfers.readonly":"View transfer data","incoming_transfers":"View and manage incoming transfer data","linked_accounts.readonly":"View linked accounts"}}}}],"scopes":["vendors"]}],"responseCodes":["200"],"pointer":"/v1/vendors/{id}","href":"vendors/deletevendor","openApiOperationId":"deleteVendor","summary":"\nDelete vendor.\n"},"isWebhook":false,"hideReplay":false,"servers":[{"url":"https://api.brex.com","description":"Production"},{"url":"https://api-staging.brex.com","description":"Staging (Note: This is not a sandbox. It will not work with customer tokens.)"}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"200","description":"deleteVendor 200 response"}],"pointer":"/paths/~1v1~1vendors~1{id}/delete/responses"}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/vendors/deletevendor"}],"panels":[]}]},"httpPath":"/v1/vendors/{id}"}],"content":{"contentType":"group","meta":{"name":"Vendors"},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Vendors","showPageActions":true},{"nodeType":"markdoc","content":"Endpoints to manage vendors"}],"panels":[{"children":[{"kind":"group-items","title":"Operations","titleTranslationKey":"operations","items":[{"title":"/v1/vendors","summary":"\nLists vendors \n","prefix":{"name":"get","color":"get"},"badges":[],"link":"/vendors/listvendors","deprecated":false},{"title":"/v1/vendors","summary":"\nCreate vendor\n","prefix":{"name":"post","color":"post"},"badges":[],"link":"/vendors/createvendor","deprecated":false},{"title":"/v1/vendors/{id}","summary":"\nGet vendor\n","prefix":{"name":"get","color":"get"},"badges":[],"link":"/vendors/getvendorbyid","deprecated":false},{"title":"/v1/vendors/{id}","summary":"Update vendor","prefix":{"name":"put","color":"put"},"badges":[],"link":"/vendors/updatevendor","deprecated":false},{"title":"/v1/vendors/{id}","summary":"\nDelete vendor.\n","prefix":{"name":"delete","color":"delete"},"badges":[],"link":"/vendors/deletevendor","deprecated":false}]}]}]}]}},{"type":"group","label":"Transfers","link":"/openapi/payments_api/transfers","routeSlug":"/openapi/payments_api/transfers","items":[{"label":"\nCreate incoming transfer\n","deprecated":false,"httpVerb":"post","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/openapi/payments_api/transfers/createincomingtransfer","routeSlug":"/openapi/payments_api/transfers/createincomingtransfer","metadata":{"seo":{"title":"\nCreate incoming transfer\n","description":"This endpoint creates a new incoming transfer. You may use use any eligible bank account connection to fund (ACH Debit)any active Brex business account."}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"sourceId":"createIncomingTransfer","name":"\nCreate incoming transfer\n","isWebhook":false,"pointer":"/paths/~1v1~1incoming_transfers/post","hasSamples":true},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"\nCreate incoming transfer\n","isWebhook":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"markdoc","content":[{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"This endpoint creates a new incoming transfer. You may use use any eligible bank account connection to fund (ACH Debit)"},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{},"children":[],"type":"softbreak"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"any active Brex business account."},"children":[],"type":"text"}],"type":"paragraph"},{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"Reminder"},"children":[],"type":"text"}],"type":"strong"},{"$$mdtype":"Node","inline":true,"attributes":{"content":": You may not use the Brex API for any activity that requires a license or registration from any"},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{},"children":[],"type":"softbreak"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"governmental authority without Brex's prior review and approval. This includes but is not limited to any money services"},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{},"children":[],"type":"softbreak"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"business or money transmission activity."},"children":[],"type":"text"}],"type":"paragraph"},{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"Please review the "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"name":"a","attrs":{"href":"https://www.brex.com/legal/developer-portal/"}},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"Brex Access Agreement"},"children":[],"type":"text"}],"type":"tag","tag":"html"},{"$$mdtype":"Node","inline":true,"attributes":{"content":" and contact us if"},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{},"children":[],"type":"softbreak"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"you have any questions."},"children":[],"type":"text"}],"type":"paragraph"}]},{"nodeType":"security","requirements":[{"schemes":[{"name":"OAuth2","scopes":["incoming_transfers"],"type":"oauth2","description":"OAuth2 security scheme","flows":{"authorizationCode":{"authorizationUrl":"https://accounts-api.brex.com/oauth2/default/v1/authorize","tokenUrl":"https://accounts-api.brex.com/oauth2/default/v1/token","scopes":{"openid":"openid","offline_access":"offline access","vendors":"View and manage vendor data","vendors.readonly":"View vendor data","transfers":"View and manage transfer data","transfers.readonly":"View transfer data","incoming_transfers":"View and manage incoming transfer data","linked_accounts.readonly":"View linked accounts"}}}}]}]},{"nodeType":"item-content","variant":"headers","label":"Headers","labelTranslationKey":"header","parameters":[{"name":"Idempotency-Key","in":"header","schemaId":"schema_2","required":true}],"pointer":"/paths/~1v1~1incoming_transfers/post/parameters"},{"nodeType":"item-content","variant":"body","label":"Request Body","labelTranslationKey":"body","required":true,"mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"components/schemas/CreateIncomingTransferRequest"}},"schemaId":"components/schemas/CreateIncomingTransferRequest","pointer":"/paths/~1v1~1incoming_transfers/post/requestBody"}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"POST","path":"/v1/incoming_transfers","servers":[{"url":"https://api.brex.com","description":"Production"},{"url":"https://api-staging.brex.com","description":"Staging (Note: This is not a sandbox. It will not work with customer tokens.)"}],"parameters":{"path":[],"query":[],"querystring":[],"header":[{"name":"Idempotency-Key","in":"header","required":true,"schemaId":"schema_2"}],"cookie":[]},"security":[{"schemes":[{"id":"OAuth2","type":"oauth2","flows":{"authorizationCode":{"authorizationUrl":"https://accounts-api.brex.com/oauth2/default/v1/authorize","tokenUrl":"https://accounts-api.brex.com/oauth2/default/v1/token","scopes":{"openid":"openid","offline_access":"offline access","vendors":"View and manage vendor data","vendors.readonly":"View vendor data","transfers":"View and manage transfer data","transfers.readonly":"View transfer data","incoming_transfers":"View and manage incoming transfer data","linked_accounts.readonly":"View linked accounts"}}}}],"scopes":["incoming_transfers"]}],"requestBody":{"application/json":{"schemaId":"components/schemas/CreateIncomingTransferRequest"}},"responseCodes":["200"],"pointer":"/v1/incoming_transfers","href":"transfers/createincomingtransfer","openApiOperationId":"createIncomingTransfer","summary":"\nCreate incoming transfer\n"},"isWebhook":false,"hideReplay":false,"servers":[{"url":"https://api.brex.com","description":"Production"},{"url":"https://api-staging.brex.com","description":"Staging (Note: This is not a sandbox. It will not work with customer tokens.)"}],"schemaId":"components/schemas/CreateIncomingTransferRequest","mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"components/schemas/CreateIncomingTransferRequest"}},"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"200","description":"createIncomingTransfer 200 response","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/Transfer"}},"schemaId":"components/schemas/Transfer"}],"pointer":"/paths/~1v1~1incoming_transfers/post/responses"}],"panels":[{"children":[{"kind":"response","responseCodes":[{"code":"200","schemaId":"components/schemas/Transfer","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/Transfer"}}}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/transfers/createincomingtransfer"}],"panels":[]}]},"httpPath":"/v1/incoming_transfers"},{"label":"\nLists transfers \n","deprecated":false,"httpVerb":"get","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/openapi/payments_api/transfers/listtransfers","routeSlug":"/openapi/payments_api/transfers/listtransfers","metadata":{"seo":{"title":"\nLists transfers \n","description":"This endpoint lists existing transfers for an account."}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"sourceId":"listTransfers","name":"\nLists transfers \n","isWebhook":false,"pointer":"/paths/~1v1~1transfers/get","hasSamples":false},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"\nLists transfers \n","isWebhook":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"markdoc","content":[{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"This endpoint lists existing transfers for an account."},"children":[],"type":"text"}],"type":"paragraph"},{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"Currently, the API can only return transfers for the following payment rails:"},"children":[],"type":"text"}],"type":"paragraph"},{"$$mdtype":"Node","attributes":{"ordered":false,"marker":"-"},"children":[{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"ACH"},"children":[],"type":"text"}],"type":"item"},{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"DOMESTIC_WIRE"},"children":[],"type":"text"}],"type":"item"},{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"CHEQUE"},"children":[],"type":"text"}],"type":"item"},{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"INTERNATIONAL_WIRE"},"children":[],"type":"text"}],"type":"item"}],"type":"list"}]},{"nodeType":"security","requirements":[{"schemes":[{"name":"OAuth2","scopes":["transfers.readonly","incoming_transfers"],"type":"oauth2","description":"OAuth2 security scheme","flows":{"authorizationCode":{"authorizationUrl":"https://accounts-api.brex.com/oauth2/default/v1/authorize","tokenUrl":"https://accounts-api.brex.com/oauth2/default/v1/token","scopes":{"openid":"openid","offline_access":"offline access","vendors":"View and manage vendor data","vendors.readonly":"View vendor data","transfers":"View and manage transfer data","transfers.readonly":"View transfer data","incoming_transfers":"View and manage incoming transfer data","linked_accounts.readonly":"View linked accounts"}}}}]}]},{"nodeType":"item-content","variant":"query","label":"Query","labelTranslationKey":"query","parameters":[{"name":"cursor","in":"query","schemaId":"schema_0"},{"name":"limit","in":"query","schemaId":"schema_1"}],"pointer":"/paths/~1v1~1transfers/get/parameters"}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"GET","path":"/v1/transfers","servers":[{"url":"https://api.brex.com","description":"Production"},{"url":"https://api-staging.brex.com","description":"Staging (Note: This is not a sandbox. It will not work with customer tokens.)"}],"parameters":{"path":[],"query":[{"name":"cursor","in":"query","schemaId":"schema_0"},{"name":"limit","in":"query","schemaId":"schema_1"}],"querystring":[],"header":[],"cookie":[]},"security":[{"schemes":[{"id":"OAuth2","type":"oauth2","flows":{"authorizationCode":{"authorizationUrl":"https://accounts-api.brex.com/oauth2/default/v1/authorize","tokenUrl":"https://accounts-api.brex.com/oauth2/default/v1/token","scopes":{"openid":"openid","offline_access":"offline access","vendors":"View and manage vendor data","vendors.readonly":"View vendor data","transfers":"View and manage transfer data","transfers.readonly":"View transfer data","incoming_transfers":"View and manage incoming transfer data","linked_accounts.readonly":"View linked accounts"}}}}],"scopes":["transfers.readonly","incoming_transfers"]}],"responseCodes":["200","400","401","403","500"],"pointer":"/v1/transfers","href":"transfers/listtransfers","openApiOperationId":"listTransfers","summary":"\nLists transfers \n"},"isWebhook":false,"hideReplay":false,"servers":[{"url":"https://api.brex.com","description":"Production"},{"url":"https://api-staging.brex.com","description":"Staging (Note: This is not a sandbox. It will not work with customer tokens.)"}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"200","description":"Returns a list of transfers.","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/Page_Transfer_"}},"schemaId":"components/schemas/Page_Transfer_"},{"code":"400","description":"Bad request"},{"code":"401","description":"Unauthorized"},{"code":"403","description":"Forbidden"},{"code":"500","description":"Internal server error"}],"pointer":"/paths/~1v1~1transfers/get/responses"}],"panels":[{"children":[{"kind":"response","responseCodes":[{"code":"200","schemaId":"components/schemas/Page_Transfer_","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/Page_Transfer_"}}},{"code":"400"},{"code":"401"},{"code":"403"},{"code":"500"}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/transfers/listtransfers"}],"panels":[]}]},"httpPath":"/v1/transfers"},{"label":"\nCreate transfer\n","deprecated":false,"httpVerb":"post","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/openapi/payments_api/transfers/createtransfer","routeSlug":"/openapi/payments_api/transfers/createtransfer","metadata":{"seo":{"title":"\nCreate transfer\n","description":"This endpoint creates a new transfer."}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"sourceId":"createTransfer","name":"\nCreate transfer\n","isWebhook":false,"pointer":"/paths/~1v1~1transfers/post","hasSamples":true},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"\nCreate transfer\n","isWebhook":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"markdoc","content":[{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"This endpoint creates a new transfer."},"children":[],"type":"text"}],"type":"paragraph"},{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"Currently, the API can only create transfers for the following payment rails:"},"children":[],"type":"text"}],"type":"paragraph"},{"$$mdtype":"Node","attributes":{"ordered":false,"marker":"-"},"children":[{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"ACH"},"children":[],"type":"text"}],"type":"item"},{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"DOMESTIC_WIRE"},"children":[],"type":"text"}],"type":"item"},{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"CHEQUE"},"children":[],"type":"text"}],"type":"item"},{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"INTERNATIONAL_WIRES"},"children":[],"type":"text"}],"type":"item"}],"type":"list"},{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"Transaction Descriptions"},"children":[],"type":"text"}],"type":"strong"}],"type":"paragraph"},{"$$mdtype":"Node","attributes":{"ordered":false,"marker":"*"},"children":[{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"For outgoing check payments, a successful transfer will return a response containing a description value with a format of "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"Check #<check number> to <recipient_name> - <external_memo>"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"."},"children":[],"type":"text"}],"type":"item"},{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"For book transfers (from one Brex Business account to another), the recipient value will have a format of "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"<customer_account.dba_name> - <external_memo>"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":" and the sender will have a format of "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"<target customer account's dba name> - <external_memo>"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"."},"children":[],"type":"text"}],"type":"item"},{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"For other payment rails, the format will be "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"<counterparty_name> - <external_memo>"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":", where Counterparty name is "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"payment_instrument.beneficiary_name"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":" or "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"contact.name"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{},"children":[],"type":"softbreak"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"For vendors created from the Payments API, the "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"counterparty_name"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":" will be the "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"company_name"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":" "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"href":"/openapi/payments_api/#operation/createVendor!path=company_name&t=request"},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"field"},"children":[],"type":"text"}],"type":"link"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"."},"children":[],"type":"text"}],"type":"item"}],"type":"list"},{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"Reminder"},"children":[],"type":"text"}],"type":"strong"},{"$$mdtype":"Node","inline":true,"attributes":{"content":": You may not use the Brex API for any activity that requires a license or registration from any"},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{},"children":[],"type":"softbreak"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"governmental authority without Brex's prior review and approval. This includes but is not limited to any money services"},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{},"children":[],"type":"softbreak"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"business or money transmission activity."},"children":[],"type":"text"}],"type":"paragraph"},{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"Please review the "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"name":"a","attrs":{"href":"https://www.brex.com/legal/developer-portal/"}},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"Brex Access Agreement"},"children":[],"type":"text"}],"type":"tag","tag":"html"},{"$$mdtype":"Node","inline":true,"attributes":{"content":" and contact us if"},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{},"children":[],"type":"softbreak"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"you have any questions."},"children":[],"type":"text"}],"type":"paragraph"}]},{"nodeType":"security","requirements":[{"schemes":[{"name":"OAuth2","scopes":["transfers"],"type":"oauth2","description":"OAuth2 security scheme","flows":{"authorizationCode":{"authorizationUrl":"https://accounts-api.brex.com/oauth2/default/v1/authorize","tokenUrl":"https://accounts-api.brex.com/oauth2/default/v1/token","scopes":{"openid":"openid","offline_access":"offline access","vendors":"View and manage vendor data","vendors.readonly":"View vendor data","transfers":"View and manage transfer data","transfers.readonly":"View transfer data","incoming_transfers":"View and manage incoming transfer data","linked_accounts.readonly":"View linked accounts"}}}}]}]},{"nodeType":"item-content","variant":"headers","label":"Headers","labelTranslationKey":"header","parameters":[{"name":"Idempotency-Key","in":"header","schemaId":"schema_2","required":true}],"pointer":"/paths/~1v1~1transfers/post/parameters"},{"nodeType":"item-content","variant":"body","label":"Request Body","labelTranslationKey":"body","required":true,"mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"components/schemas/CreateTransferRequest"}},"schemaId":"components/schemas/CreateTransferRequest","pointer":"/paths/~1v1~1transfers/post/requestBody"}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"POST","path":"/v1/transfers","servers":[{"url":"https://api.brex.com","description":"Production"},{"url":"https://api-staging.brex.com","description":"Staging (Note: This is not a sandbox. It will not work with customer tokens.)"}],"parameters":{"path":[],"query":[],"querystring":[],"header":[{"name":"Idempotency-Key","in":"header","required":true,"schemaId":"schema_2"}],"cookie":[]},"security":[{"schemes":[{"id":"OAuth2","type":"oauth2","flows":{"authorizationCode":{"authorizationUrl":"https://accounts-api.brex.com/oauth2/default/v1/authorize","tokenUrl":"https://accounts-api.brex.com/oauth2/default/v1/token","scopes":{"openid":"openid","offline_access":"offline access","vendors":"View and manage vendor data","vendors.readonly":"View vendor data","transfers":"View and manage transfer data","transfers.readonly":"View transfer data","incoming_transfers":"View and manage incoming transfer data","linked_accounts.readonly":"View linked accounts"}}}}],"scopes":["transfers"]}],"requestBody":{"application/json":{"schemaId":"components/schemas/CreateTransferRequest"}},"responseCodes":["200"],"pointer":"/v1/transfers","href":"transfers/createtransfer","openApiOperationId":"createTransfer","summary":"\nCreate transfer\n"},"isWebhook":false,"hideReplay":false,"servers":[{"url":"https://api.brex.com","description":"Production"},{"url":"https://api-staging.brex.com","description":"Staging (Note: This is not a sandbox. It will not work with customer tokens.)"}],"schemaId":"components/schemas/CreateTransferRequest","mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"components/schemas/CreateTransferRequest"}},"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"200","description":"createTransfer 200 response","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/Transfer"}},"schemaId":"components/schemas/Transfer"}],"pointer":"/paths/~1v1~1transfers/post/responses"}],"panels":[{"children":[{"kind":"response","responseCodes":[{"code":"200","schemaId":"components/schemas/Transfer","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/Transfer"}}}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/transfers/createtransfer"}],"panels":[]}]},"httpPath":"/v1/transfers"},{"label":"\nGet transfer\n","deprecated":false,"httpVerb":"get","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/openapi/payments_api/transfers/gettransfersbyid","routeSlug":"/openapi/payments_api/transfers/gettransfersbyid","metadata":{"seo":{"title":"\nGet transfer\n","description":"This endpoint gets a transfer by ID."}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"sourceId":"getTransfersById","name":"\nGet transfer\n","isWebhook":false,"pointer":"/paths/~1v1~1transfers~1{id}/get","hasSamples":false},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"\nGet transfer\n","isWebhook":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"markdoc","content":[{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"This endpoint gets a transfer by ID."},"children":[],"type":"text"}],"type":"paragraph"},{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"Currently, the API can only return transfers for the following payment rails:"},"children":[],"type":"text"}],"type":"paragraph"},{"$$mdtype":"Node","attributes":{"ordered":false,"marker":"-"},"children":[{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"ACH"},"children":[],"type":"text"}],"type":"item"},{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"DOMESTIC_WIRE"},"children":[],"type":"text"}],"type":"item"},{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"CHEQUE"},"children":[],"type":"text"}],"type":"item"},{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"INTERNATIONAL_WIRE"},"children":[],"type":"text"}],"type":"item"}],"type":"list"}]},{"nodeType":"security","requirements":[{"schemes":[{"name":"OAuth2","scopes":["transfers.readonly","incoming_transfers"],"type":"oauth2","description":"OAuth2 security scheme","flows":{"authorizationCode":{"authorizationUrl":"https://accounts-api.brex.com/oauth2/default/v1/authorize","tokenUrl":"https://accounts-api.brex.com/oauth2/default/v1/token","scopes":{"openid":"openid","offline_access":"offline access","vendors":"View and manage vendor data","vendors.readonly":"View vendor data","transfers":"View and manage transfer data","transfers.readonly":"View transfer data","incoming_transfers":"View and manage incoming transfer data","linked_accounts.readonly":"View linked accounts"}}}}]}]},{"nodeType":"item-content","variant":"path","label":"Path","labelTranslationKey":"path","parameters":[{"name":"id","in":"path","schemaId":"schema_2","required":true}],"pointer":"/paths/~1v1~1transfers~1{id}/get/parameters"}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"GET","path":"/v1/transfers/{id}","servers":[{"url":"https://api.brex.com","description":"Production"},{"url":"https://api-staging.brex.com","description":"Staging (Note: This is not a sandbox. It will not work with customer tokens.)"}],"parameters":{"path":[{"name":"id","in":"path","required":true,"schemaId":"schema_2"}],"query":[],"querystring":[],"header":[],"cookie":[]},"security":[{"schemes":[{"id":"OAuth2","type":"oauth2","flows":{"authorizationCode":{"authorizationUrl":"https://accounts-api.brex.com/oauth2/default/v1/authorize","tokenUrl":"https://accounts-api.brex.com/oauth2/default/v1/token","scopes":{"openid":"openid","offline_access":"offline access","vendors":"View and manage vendor data","vendors.readonly":"View vendor data","transfers":"View and manage transfer data","transfers.readonly":"View transfer data","incoming_transfers":"View and manage incoming transfer data","linked_accounts.readonly":"View linked accounts"}}}}],"scopes":["transfers.readonly","incoming_transfers"]}],"responseCodes":["200","400","401","403","500"],"pointer":"/v1/transfers/{id}","href":"transfers/gettransfersbyid","openApiOperationId":"getTransfersById","summary":"\nGet transfer\n"},"isWebhook":false,"hideReplay":false,"servers":[{"url":"https://api.brex.com","description":"Production"},{"url":"https://api-staging.brex.com","description":"Staging (Note: This is not a sandbox. It will not work with customer tokens.)"}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"200","description":"Returns a transfer.","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/Transfer"}},"schemaId":"components/schemas/Transfer"},{"code":"400","description":"Bad request"},{"code":"401","description":"Unauthorized"},{"code":"403","description":"Forbidden"},{"code":"500","description":"Internal server error"}],"pointer":"/paths/~1v1~1transfers~1{id}/get/responses"}],"panels":[{"children":[{"kind":"response","responseCodes":[{"code":"200","schemaId":"components/schemas/Transfer","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/Transfer"}}},{"code":"400"},{"code":"401"},{"code":"403"},{"code":"500"}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/transfers/gettransfersbyid"}],"panels":[]}]},"httpPath":"/v1/transfers/{id}"}],"content":{"contentType":"group","meta":{"name":"Transfers"},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Transfers","showPageActions":true},{"nodeType":"markdoc","content":"Endpoints to initiate transfers and view transfer statuses. Note that for all transfer endpoints, the 'money' field is positive or unsigned for outgoing transfers (debits), and negative for incoming transfers (credits)."}],"panels":[{"children":[{"kind":"group-items","title":"Operations","titleTranslationKey":"operations","items":[{"title":"/v1/incoming_transfers","summary":"\nCreate incoming transfer\n","prefix":{"name":"post","color":"post"},"badges":[],"link":"/transfers/createincomingtransfer","deprecated":false},{"title":"/v1/transfers","summary":"\nLists transfers \n","prefix":{"name":"get","color":"get"},"badges":[],"link":"/transfers/listtransfers","deprecated":false},{"title":"/v1/transfers","summary":"\nCreate transfer\n","prefix":{"name":"post","color":"post"},"badges":[],"link":"/transfers/createtransfer","deprecated":false},{"title":"/v1/transfers/{id}","summary":"\nGet transfer\n","prefix":{"name":"get","color":"get"},"badges":[],"link":"/transfers/gettransfersbyid","deprecated":false}]}]}]}]}},{"type":"group","label":"Linked Accounts","link":"/openapi/payments_api/linked-accounts","routeSlug":"/openapi/payments_api/linked-accounts","items":[{"label":"\nLists linked accounts\n","deprecated":false,"httpVerb":"get","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/openapi/payments_api/linked-accounts/listlinkedaccounts","routeSlug":"/openapi/payments_api/linked-accounts/listlinkedaccounts","metadata":{"seo":{"title":"\nLists linked accounts\n","description":"This endpoint lists all bank connections that are eligible to make ACH transfers to Brex business account"}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"sourceId":"listLinkedAccounts","name":"\nLists linked accounts\n","isWebhook":false,"pointer":"/paths/~1v1~1linked_accounts/get","hasSamples":false},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"\nLists linked accounts\n","isWebhook":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"markdoc","content":"\nThis endpoint lists all bank connections that are eligible to make ACH transfers to Brex business account\n"},{"nodeType":"security","requirements":[{"schemes":[{"name":"OAuth2","scopes":["linked_accounts.readonly"],"type":"oauth2","description":"OAuth2 security scheme","flows":{"authorizationCode":{"authorizationUrl":"https://accounts-api.brex.com/oauth2/default/v1/authorize","tokenUrl":"https://accounts-api.brex.com/oauth2/default/v1/token","scopes":{"openid":"openid","offline_access":"offline access","vendors":"View and manage vendor data","vendors.readonly":"View vendor data","transfers":"View and manage transfer data","transfers.readonly":"View transfer data","incoming_transfers":"View and manage incoming transfer data","linked_accounts.readonly":"View linked accounts"}}}}]}]},{"nodeType":"item-content","variant":"query","label":"Query","labelTranslationKey":"query","parameters":[{"name":"cursor","in":"query","schemaId":"schema_0"},{"name":"limit","in":"query","schemaId":"schema_1"}],"pointer":"/paths/~1v1~1linked_accounts/get/parameters"}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"GET","path":"/v1/linked_accounts","servers":[{"url":"https://api.brex.com","description":"Production"},{"url":"https://api-staging.brex.com","description":"Staging (Note: This is not a sandbox. It will not work with customer tokens.)"}],"parameters":{"path":[],"query":[{"name":"cursor","in":"query","schemaId":"schema_0"},{"name":"limit","in":"query","schemaId":"schema_1"}],"querystring":[],"header":[],"cookie":[]},"security":[{"schemes":[{"id":"OAuth2","type":"oauth2","flows":{"authorizationCode":{"authorizationUrl":"https://accounts-api.brex.com/oauth2/default/v1/authorize","tokenUrl":"https://accounts-api.brex.com/oauth2/default/v1/token","scopes":{"openid":"openid","offline_access":"offline access","vendors":"View and manage vendor data","vendors.readonly":"View vendor data","transfers":"View and manage transfer data","transfers.readonly":"View transfer data","incoming_transfers":"View and manage incoming transfer data","linked_accounts.readonly":"View linked accounts"}}}}],"scopes":["linked_accounts.readonly"]}],"responseCodes":["200","400","401","403"],"pointer":"/v1/linked_accounts","href":"linked-accounts/listlinkedaccounts","openApiOperationId":"listLinkedAccounts","summary":"\nLists linked accounts\n"},"isWebhook":false,"hideReplay":false,"servers":[{"url":"https://api.brex.com","description":"Production"},{"url":"https://api-staging.brex.com","description":"Staging (Note: This is not a sandbox. It will not work with customer tokens.)"}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"200","description":"Returns a list of bank connections","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/Page_BankConnection_"}},"schemaId":"components/schemas/Page_BankConnection_"},{"code":"400","description":"Bad request"},{"code":"401","description":"Unauthorized"},{"code":"403","description":"Forbidden"}],"pointer":"/paths/~1v1~1linked_accounts/get/responses"}],"panels":[{"children":[{"kind":"response","responseCodes":[{"code":"200","schemaId":"components/schemas/Page_BankConnection_","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/Page_BankConnection_"}}},{"code":"400"},{"code":"401"},{"code":"403"}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/linked-accounts/listlinkedaccounts"}],"panels":[]}]},"httpPath":"/v1/linked_accounts"}],"content":{"contentType":"group","meta":{"name":"Linked Accounts"},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Linked Accounts","showPageActions":true},{"nodeType":"markdoc","content":"Endpoint to view connected linked accounts"}],"panels":[{"children":[{"kind":"group-items","title":"Operations","titleTranslationKey":"operations","items":[{"title":"/v1/linked_accounts","summary":"\nLists linked accounts\n","prefix":{"name":"get","color":"get"},"badges":[],"link":"/linked-accounts/listlinkedaccounts","deprecated":false}]}]}]}]}}],"store":{"schemaStore":{"components/schemas/ACHDetailsRequest":{"id":"components/schemas/ACHDetailsRequest","kind":"json-schema","title":"ACHDetailsRequest","data":{"type":"object","allOf":[{"$ref":"#/components/schemas/PaymentAccountDetails"},{"required":["account_class","account_number","account_type","routing_number","type"],"properties":{"type":{"$ref":"#/components/schemas/PaymentDetailsTypeRequest"},"routing_number":{"type":"string","description":"The routing number must follow proper format."},"account_number":{"type":"string"},"account_type":{"$ref":"#/components/schemas/AccountType"},"account_class":{"$ref":"#/components/schemas/AccountClass"},"beneficiary_name":{"type":"string","nullable":true}}}]}},"components/schemas/ACHDetailsResponse":{"id":"components/schemas/ACHDetailsResponse","kind":"json-schema","title":"ACHDetailsResponse","data":{"type":"object","allOf":[{"$ref":"#/components/schemas/PaymentAccountDetailsResponse"},{"required":["account_number","payment_instrument_id","routing_number","type"],"properties":{"type":{"$ref":"#/components/schemas/PaymentDetailsTypeResponse"},"payment_instrument_id":{"type":"string","description":"Payment Instrument ID that can be passed to the /transfers endpoint to trigger a transfer.\nThe type of the payment instrument dictates the method.\n"},"routing_number":{"type":"string"},"account_number":{"type":"string"},"account_type":{"nullable":true,"allOf":[{"$ref":"#/components/schemas/AccountType"}]},"account_class":{"nullable":true,"allOf":[{"$ref":"#/components/schemas/AccountClass"}]}}}]}},"components/schemas/AccountClass":{"id":"components/schemas/AccountClass","kind":"json-schema","title":"AccountClass","data":{"type":"string","enum":["BUSINESS","PERSONAL"]}},"components/schemas/AccountType":{"id":"components/schemas/AccountType","kind":"json-schema","title":"AccountType","data":{"type":"string","enum":["CHECKING","SAVING"]}},"components/schemas/Address":{"id":"components/schemas/Address","kind":"json-schema","title":"Address","data":{"type":"object","properties":{"line1":{"type":"string","description":"Address line 1, no PO Box.","nullable":true},"line2":{"type":"string","description":"Address line 2 (e.g., apartment, suite, unit, or building).","nullable":true},"city":{"type":"string","description":"City, district, suburb, town, or village.","nullable":true},"state":{"type":"string","description":"For US-addressed the 2-letter State abbreviation. For international-addresses the county, providence, or region.","nullable":true},"country":{"type":"string","description":"Two-letter country code (ISO 3166-1 alpha-2).","nullable":true},"postal_code":{"type":"string","description":"ZIP or postal code.","nullable":true},"phone_number":{"type":"string","description":"Phone number.","nullable":true}},"description":"Company business address (must be in the US; no PO box or virtual/forwarding addresses allowed)."}},"components/schemas/ApprovalType":{"id":"components/schemas/ApprovalType","kind":"json-schema","title":"ApprovalType","data":{"type":"string","description":[{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"Specifies the approval type for the transaction."},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{},"children":[],"type":"softbreak"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"MANUAL"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":" requires a cash admin to approve the transaction before disbursing funds."},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{},"children":[],"type":"softbreak"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"When not set, the default policy will apply."},"children":[],"type":"text"}],"type":"paragraph"}],"enum":["MANUAL"]}},"components/schemas/Balance":{"id":"components/schemas/Balance","kind":"json-schema","title":"Balance","data":{"required":["amount","as_of_date"],"type":"object","properties":{"amount":{"$ref":"#/components/schemas/Money"},"as_of_date":{"type":"string","format":"date"}}}},"components/schemas/BankAccountDetailsResponse":{"id":"components/schemas/BankAccountDetailsResponse","kind":"json-schema","title":"BankAccountDetailsResponse","data":{"type":"object","allOf":[{"$ref":"#/components/schemas/CounterPartyResponse"},{"required":["type"],"properties":{"type":{"$ref":"#/components/schemas/CounterPartyResponseType"},"routing_number":{"type":"string","description":"Routing number of a bank account (or SWIFT/BIC code for international transfer). For incoming cheques, this field might be null.","nullable":true},"account_number":{"type":"string","description":"Account number of a bank account (or IBAN code for international transfer). For incoming cheques, this field might be null.","nullable":true},"description":{"type":"string","description":"Description of the transfer.","nullable":true},"beneficiary_bank":{"nullable":true,"allOf":[{"$ref":"#/components/schemas/BeneficiaryBank"},{"description":"Beneficiary Bank information"}]},"fed_reference_number":{"type":"string","description":"Fed reference number for incoming wires","nullable":true},"external_memo":{"type":"string","description":"External Memo populated by the sender","nullable":true}}}]}},"components/schemas/BankConnection":{"id":"components/schemas/BankConnection","kind":"json-schema","title":"BankConnection","data":{"required":["bank_details","id","last_four"],"type":"object","properties":{"id":{"type":"string"},"bank_details":{"allOf":[{"$ref":"#/components/schemas/BankDetails"},{"description":"\nDetails of the bank - Name, Type\n"}]},"brex_account_id":{"type":"string","description":"\nBrex business account ID\n","nullable":true},"last_four":{"type":"string"},"available_balance":{"nullable":true,"allOf":[{"$ref":"#/components/schemas/Balance"}]},"current_balance":{"nullable":true,"allOf":[{"$ref":"#/components/schemas/Balance"}]}}}},"components/schemas/BankDetails":{"id":"components/schemas/BankDetails","kind":"json-schema","title":"BankDetails","data":{"required":["name","type"],"type":"object","properties":{"name":{"type":"string","description":"\nThe name of the bank\n"},"type":{"allOf":[{"$ref":"#/components/schemas/BankType"},{"description":"\nThe type of bank account connected. For example, CHECKING or SAVING\n"}]}}}},"components/schemas/BankType":{"id":"components/schemas/BankType","kind":"json-schema","title":"BankType","data":{"type":"string","enum":["CHECKING","SAVING"]}},"components/schemas/BeneficiaryBank":{"id":"components/schemas/BeneficiaryBank","kind":"json-schema","title":"BeneficiaryBank","data":{"type":"object","properties":{"name":{"type":"string","nullable":true},"address":{"nullable":true,"allOf":[{"$ref":"#/components/schemas/Address"}]}}}},"components/schemas/BookTransferDetails":{"id":"components/schemas/BookTransferDetails","kind":"json-schema","title":"BookTransferDetails","data":{"type":"object","allOf":[{"$ref":"#/components/schemas/CounterParty"},{"required":["recipient","type"],"properties":{"type":{"$ref":"#/components/schemas/CounterPartyType"},"recipient":{"$ref":"#/components/schemas/Recipient"}}}]}},"components/schemas/BookTransferDetailsResponse":{"id":"components/schemas/BookTransferDetailsResponse","kind":"json-schema","title":"BookTransferDetailsResponse","data":{"type":"object","allOf":[{"$ref":"#/components/schemas/CounterPartyResponse"},{"required":["deposit_account_id","type"],"properties":{"type":{"$ref":"#/components/schemas/CounterPartyResponseType"},"deposit_account_id":{"type":"string","description":"This feature is currently limited to certain customers, please reach out if you are interested"}}}]}},"components/schemas/BrexCashAccountDetails":{"id":"components/schemas/BrexCashAccountDetails","kind":"json-schema","title":"BrexCashAccountDetails","data":{"type":"object","allOf":[{"$ref":"#/components/schemas/OriginatingAccount"},{"required":["id","type"],"properties":{"type":{"$ref":"#/components/schemas/OriginatingAccountType"},"id":{"type":"string","description":[{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"ID of the Brex Business account: Can be found from the "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"/accounts"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":" endpoint"},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{},"children":[],"type":"softbreak"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"where instrument type is "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"CASH"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"."},"children":[],"type":"text"}],"type":"paragraph"}]}}}]}},"components/schemas/BrexCashAccountDetailsResponse":{"id":"components/schemas/BrexCashAccountDetailsResponse","kind":"json-schema","title":"BrexCashAccountDetailsResponse","data":{"type":"object","allOf":[{"$ref":"#/components/schemas/OriginatingAccountResponse"},{"required":["id","type"],"properties":{"type":{"$ref":"#/components/schemas/OriginatingAccountResponseType"},"id":{"type":"string","description":"\nID of the Brex Business account.\n"}}}]}},"components/schemas/BrexCashDetails":{"id":"components/schemas/BrexCashDetails","kind":"json-schema","title":"BrexCashDetails","data":{"type":"object","allOf":[{"$ref":"#/components/schemas/ReceivingAccount"},{"required":["id","type"],"properties":{"type":{"$ref":"#/components/schemas/ReceivingAccountType"},"id":{"type":"string","description":[{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"ID of the Brex business account: Can be found from the "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"href":"/openapi/transactions_api/#operation/listAccounts"},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"List business accounts"},"children":[],"type":"text"}],"type":"link"},{"$$mdtype":"Node","inline":true,"attributes":{"content":" endpoint"},"children":[],"type":"text"}],"type":"paragraph"}]}}}]}},"components/schemas/ChequeDetailsRequest":{"id":"components/schemas/ChequeDetailsRequest","kind":"json-schema","title":"ChequeDetailsRequest","data":{"type":"object","allOf":[{"$ref":"#/components/schemas/PaymentAccountDetails"},{"required":["mailing_address","recipient_name","type"],"properties":{"type":{"$ref":"#/components/schemas/PaymentDetailsTypeRequest"},"mailing_address":{"$ref":"#/components/schemas/Address"},"recipient_name":{"maxLength":40,"type":"string"},"beneficiary_name":{"type":"string","nullable":true}}}]}},"components/schemas/ChequeDetailsResponse":{"id":"components/schemas/ChequeDetailsResponse","kind":"json-schema","title":"ChequeDetailsResponse","data":{"type":"object","allOf":[{"$ref":"#/components/schemas/PaymentAccountDetailsResponse"},{"required":["mailing_address","payment_instrument_id","recipient_name","type"],"properties":{"type":{"$ref":"#/components/schemas/PaymentDetailsTypeResponse"},"payment_instrument_id":{"type":"string","description":"Payment Instrument ID that can be passed to the /transfers endpoint to trigger a transfer.\nThe type of the payment instrument dictates the method.\n"},"mailing_address":{"$ref":"#/components/schemas/Address"},"recipient_name":{"type":"string"}}}]}},"components/schemas/CounterParty":{"id":"components/schemas/CounterParty","kind":"json-schema","title":"CounterParty","data":{"type":"object","description":"Counterparty Details for the transfer","discriminator":{"propertyName":"type","mapping":{"BOOK_TRANSFER":"#/components/schemas/BookTransferDetails","VENDOR":"#/components/schemas/VendorDetails"}},"oneOf":[{"$ref":"#/components/schemas/VendorDetails"},{"$ref":"#/components/schemas/BookTransferDetails"}]}},"components/schemas/CounterPartyBankDetails":{"id":"components/schemas/CounterPartyBankDetails","kind":"json-schema","title":"CounterPartyBankDetails","data":{"type":"object","allOf":[{"$ref":"#/components/schemas/CounterPartyIncomingTransfer"},{"required":["id","type"],"properties":{"type":{"$ref":"#/components/schemas/CounterPartyIncomingTransferType"},"id":{"type":"string","description":[{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"The financial account id: Can be found from the "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"href":"/openapi/payments_api/#operation/listLinkedAccounts"},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"List linked accounts"},"children":[],"type":"text"}],"type":"link"},{"$$mdtype":"Node","inline":true,"attributes":{"content":" endpoint"},"children":[],"type":"text"}],"type":"paragraph"}]}}}]}},"components/schemas/CounterPartyIncomingTransfer":{"id":"components/schemas/CounterPartyIncomingTransfer","kind":"json-schema","title":"CounterPartyIncomingTransfer","data":{"type":"object","description":"Counterparty Details for the transfer","discriminator":{"propertyName":"type","mapping":{"BANK":"#/components/schemas/CounterPartyBankDetails"}},"oneOf":[{"$ref":"#/components/schemas/CounterPartyBankDetails"}]}},"components/schemas/CounterPartyIncomingTransferType":{"id":"components/schemas/CounterPartyIncomingTransferType","kind":"json-schema","title":"CounterPartyIncomingTransferType","data":{"type":"string","enum":["BANK"]}},"components/schemas/CounterPartyResponse":{"id":"components/schemas/CounterPartyResponse","kind":"json-schema","title":"CounterPartyResponse","data":{"type":"object","description":[{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"Counterparty Details for the transfer - Currently only supports vendors that are returned in the"},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{},"children":[],"type":"softbreak"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"response from the /vendors endpoint"},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{},"children":[],"type":"softbreak"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"BOOK_TRANSFER is a limited feature. Please reach out if you are interested."},"children":[],"type":"text"}],"type":"paragraph"}],"discriminator":{"propertyName":"type","mapping":{"BANK_ACCOUNT":"#/components/schemas/BankAccountDetailsResponse","BOOK_TRANSFER":"#/components/schemas/BookTransferDetailsResponse","VENDOR":"#/components/schemas/VendorDetailsResponse"}},"oneOf":[{"$ref":"#/components/schemas/VendorDetailsResponse"}]}},"components/schemas/CounterPartyResponseType":{"id":"components/schemas/CounterPartyResponseType","kind":"json-schema","title":"CounterPartyResponseType","data":{"type":"string","enum":["VENDOR","BOOK_TRANSFER","BANK_ACCOUNT"]}},"components/schemas/CounterPartyType":{"id":"components/schemas/CounterPartyType","kind":"json-schema","title":"CounterPartyType","data":{"type":"string","enum":["VENDOR","BOOK_TRANSFER"]}},"components/schemas/CreateIncomingTransferRequest":{"id":"components/schemas/CreateIncomingTransferRequest","kind":"json-schema","title":"CreateIncomingTransferRequest","data":{"required":["amount","counterparty","description","receiving_account"],"type":"object","properties":{"counterparty":{"$ref":"#/components/schemas/CounterPartyIncomingTransfer"},"receiving_account":{"$ref":"#/components/schemas/ReceivingAccount"},"amount":{"$ref":"#/components/schemas/Money"},"description":{"type":"string","description":" \nDescription of the transfer for internal use. Not exposed externally. \n"}}}},"components/schemas/CreateTransferRequest":{"id":"components/schemas/CreateTransferRequest","kind":"json-schema","title":"CreateTransferRequest","data":{"required":["amount","counterparty","description","external_memo","originating_account"],"type":"object","properties":{"counterparty":{"$ref":"#/components/schemas/CounterParty"},"amount":{"$ref":"#/components/schemas/Money"},"description":{"type":"string","description":"Description of the transfer for internal use. Not exposed externally."},"external_memo":{"maxLength":90,"type":"string","description":[{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"External memo for the transfer. "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"Payment Instructions"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":" for Wires and the "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"Entry Description"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":" for ACH payments."},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{},"children":[],"type":"softbreak"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"Must be at most 90 characters for "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"ACH"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":" and "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"WIRE"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":" transactions"},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{},"children":[],"type":"softbreak"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"and at most 40 characters for "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"CHEQUES"},"children":[],"type":"code"}],"type":"paragraph"}]},"originating_account":{"allOf":[{"$ref":"#/components/schemas/OriginatingAccount"},{"description":[{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"Brex originating account details. Account IDs are returned by the /accounts"},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{},"children":[],"type":"softbreak"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"endpoint. This endpoint currently only supports accounts with instrument type "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"CASH"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":" (Brex business accounts)"},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{},"children":[],"type":"softbreak"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"Currently only USD transfers are supported and amount should be positive"},"children":[],"type":"text"}],"type":"paragraph"}]}]},"approval_type":{"nullable":true,"allOf":[{"$ref":"#/components/schemas/ApprovalType"}]},"is_ppro_enabled":{"type":"boolean","description":"When set to true, add Principal Protection (PPRO) to the transaction.\n PPRO means Brex will cover any fees charged by intemediary or receiving banks. PPRO charges will be billed separately\n in a monthly statement. PPRO is only available for international wire transactions.\n"}}}},"components/schemas/CreateVendorRequest":{"id":"components/schemas/CreateVendorRequest","kind":"json-schema","title":"CreateVendorRequest","data":{"required":["company_name"],"type":"object","properties":{"company_name":{"type":"string","description":"Name for vendor. The name must be unique."},"email":{"type":"string","description":"Email for vendor.","format":"email","nullable":true},"phone":{"type":"string","description":"Phone number for vendor.","nullable":true},"payment_accounts":{"type":"array","description":"Payment accounts associated with the vendor.","nullable":true,"items":{"$ref":"#/components/schemas/PaymentAccountRequest"}}}}},"components/schemas/DomesticWireDetailsRequest":{"id":"components/schemas/DomesticWireDetailsRequest","kind":"json-schema","title":"DomesticWireDetailsRequest","data":{"type":"object","allOf":[{"$ref":"#/components/schemas/PaymentAccountDetails"},{"required":["account_number","address","routing_number","type"],"properties":{"type":{"$ref":"#/components/schemas/PaymentDetailsTypeRequest"},"routing_number":{"type":"string","description":"The routing number must follow proper format."},"account_number":{"type":"string"},"address":{"$ref":"#/components/schemas/Address"},"beneficiary_name":{"type":"string","nullable":true}}}]}},"components/schemas/DomesticWireDetailsResponse":{"id":"components/schemas/DomesticWireDetailsResponse","kind":"json-schema","title":"DomesticWireDetailsResponse","data":{"type":"object","allOf":[{"$ref":"#/components/schemas/PaymentAccountDetailsResponse"},{"required":["account_number","address","payment_instrument_id","routing_number","type"],"properties":{"type":{"$ref":"#/components/schemas/PaymentDetailsTypeResponse"},"payment_instrument_id":{"type":"string","description":"Payment Instrument ID that can be passed to the /transfers endpoint to trigger a transfer.\nThe type of the payment instrument dictates the method.\n"},"routing_number":{"type":"string"},"account_number":{"type":"string"},"address":{"$ref":"#/components/schemas/Address"}}}]}},"components/schemas/InternationalWireDetailsResponse":{"id":"components/schemas/InternationalWireDetailsResponse","kind":"json-schema","title":"InternationalWireDetailsResponse","data":{"type":"object","allOf":[{"$ref":"#/components/schemas/PaymentAccountDetailsResponse"},{"required":["address","iban","payment_instrument_id","swift_code","type"],"properties":{"type":{"$ref":"#/components/schemas/PaymentDetailsTypeResponse"},"payment_instrument_id":{"type":"string","description":"Payment Instrument ID that can be passed to the /transfers endpoint to trigger a transfer.\nThe type of the payment instrument dictates the method.\n"},"swift_code":{"type":"string","description":[{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"Counterparty's "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"SWIFT"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":" code"},"children":[],"type":"text"}],"type":"paragraph"}]},"iban":{"type":"string","description":"Counterparty's international bank account number"},"beneficiary_bank_name":{"type":"string","description":"Name of counterparty's bank","nullable":true},"address":{"$ref":"#/components/schemas/Address"}}}]}},"components/schemas/Money":{"id":"components/schemas/Money","kind":"json-schema","title":"Money","data":{"required":["amount"],"type":"object","properties":{"amount":{"type":"integer","description":"The amount of money, in the smallest denomination of the currency indicated by currency. For example, when currency is USD, amount is in cents.","format":"int64","example":700},"currency":{"type":"string","description":"The type of currency, in ISO 4217 format.","nullable":true,"example":"USD","default":"USD"}},"description":"\nMoney fields can be signed or unsigned. Fields are signed (an unsigned value will be interpreted as positive). The amount of money will be represented in the smallest denomination\nof the currency indicated. For example, USD 7.00 will be represented in cents with an amount of 700.\n"}},"components/schemas/OriginatingAccount":{"id":"components/schemas/OriginatingAccount","kind":"json-schema","title":"OriginatingAccount","data":{"type":"object","description":"Originating account details for the transfer","discriminator":{"propertyName":"type","mapping":{"BREX_CASH":"#/components/schemas/BrexCashAccountDetails"}},"oneOf":[{"$ref":"#/components/schemas/BrexCashAccountDetails"}]}},"components/schemas/OriginatingAccountResponse":{"id":"components/schemas/OriginatingAccountResponse","kind":"json-schema","title":"OriginatingAccountResponse","data":{"type":"object","description":"Originating account details for the transfer","discriminator":{"propertyName":"type","mapping":{"BREX_CASH":"#/components/schemas/BrexCashAccountDetailsResponse"}},"oneOf":[{"$ref":"#/components/schemas/BrexCashAccountDetailsResponse"}]}},"components/schemas/OriginatingAccountResponseType":{"id":"components/schemas/OriginatingAccountResponseType","kind":"json-schema","title":"OriginatingAccountResponseType","data":{"type":"string","enum":["BREX_CASH"]}},"components/schemas/OriginatingAccountType":{"id":"components/schemas/OriginatingAccountType","kind":"json-schema","title":"OriginatingAccountType","data":{"type":"string","enum":["BREX_CASH"]}},"components/schemas/Page_BankConnection_":{"id":"components/schemas/Page_BankConnection_","kind":"json-schema","title":"Page_BankConnection_","data":{"required":["items"],"type":"object","properties":{"next_cursor":{"type":"string","nullable":true},"items":{"type":"array","items":{"$ref":"#/components/schemas/BankConnection"}}}}},"components/schemas/Page_Transfer_":{"id":"components/schemas/Page_Transfer_","kind":"json-schema","title":"Page_Transfer_","data":{"required":["items"],"type":"object","properties":{"next_cursor":{"type":"string","nullable":true},"items":{"type":"array","items":{"$ref":"#/components/schemas/Transfer"}}}}},"components/schemas/Page_VendorResponse_":{"id":"components/schemas/Page_VendorResponse_","kind":"json-schema","title":"Page_VendorResponse_","data":{"required":["items"],"type":"object","properties":{"next_cursor":{"type":"string","nullable":true},"items":{"type":"array","items":{"$ref":"#/components/schemas/VendorResponse"}}}}},"components/schemas/PaymentAccountDetails":{"id":"components/schemas/PaymentAccountDetails","kind":"json-schema","title":"PaymentAccountDetails","data":{"type":"object","description":[{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"Payment Instruments associated with the vendor."},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{},"children":[],"type":"softbreak"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"Each vendor can only have one payment account per payment instrument type. For instance, a vendor may have associated details for each of ACH, DOMESTIC_WIRE, and CHEQUE, but they cannot have 2 entries for ACH. If you modify a vendor's existing payment instrument type with new details, it will overwrite any previous data."},"children":[],"type":"text"}],"type":"paragraph"}],"discriminator":{"propertyName":"type","mapping":{"DOMESTIC_WIRE":"#/components/schemas/DomesticWireDetailsRequest","ACH":"#/components/schemas/ACHDetailsRequest","CHEQUE":"#/components/schemas/ChequeDetailsRequest"}},"oneOf":[{"$ref":"#/components/schemas/ACHDetailsRequest"},{"$ref":"#/components/schemas/DomesticWireDetailsRequest"},{"$ref":"#/components/schemas/ChequeDetailsRequest"}]}},"components/schemas/PaymentAccountDetailsResponse":{"id":"components/schemas/PaymentAccountDetailsResponse","kind":"json-schema","title":"PaymentAccountDetailsResponse","data":{"type":"object","discriminator":{"propertyName":"type","mapping":{"DOMESTIC_WIRE":"#/components/schemas/DomesticWireDetailsResponse","ACH":"#/components/schemas/ACHDetailsResponse","CHEQUE":"#/components/schemas/ChequeDetailsResponse","INTERNATIONAL_WIRE":"#/components/schemas/InternationalWireDetailsResponse"}},"oneOf":[{"$ref":"#/components/schemas/ACHDetailsResponse"},{"$ref":"#/components/schemas/DomesticWireDetailsResponse"},{"$ref":"#/components/schemas/ChequeDetailsResponse"},{"$ref":"#/components/schemas/InternationalWireDetailsResponse"}]}},"components/schemas/PaymentAccountRequest":{"id":"components/schemas/PaymentAccountRequest","kind":"json-schema","title":"PaymentAccountRequest","data":{"required":["details"],"type":"object","properties":{"details":{"$ref":"#/components/schemas/PaymentAccountDetails"}}}},"components/schemas/PaymentAccountResponse":{"id":"components/schemas/PaymentAccountResponse","kind":"json-schema","title":"PaymentAccountResponse","data":{"required":["details"],"type":"object","properties":{"details":{"$ref":"#/components/schemas/PaymentAccountDetailsResponse"}}}},"components/schemas/PaymentDetailsTypeRequest":{"id":"components/schemas/PaymentDetailsTypeRequest","kind":"json-schema","title":"PaymentDetailsTypeRequest","data":{"type":"string","enum":["ACH","DOMESTIC_WIRE","CHEQUE"]}},"components/schemas/PaymentDetailsTypeResponse":{"id":"components/schemas/PaymentDetailsTypeResponse","kind":"json-schema","title":"PaymentDetailsTypeResponse","data":{"type":"string","enum":["ACH","DOMESTIC_WIRE","CHEQUE","INTERNATIONAL_WIRE"]}},"components/schemas/PaymentType":{"id":"components/schemas/PaymentType","kind":"json-schema","title":"PaymentType","data":{"type":"string","enum":["ACH","DOMESTIC_WIRE","CHEQUE","INTERNATIONAL_WIRE","BOOK_TRANSFER","STABLECOIN"]}},"components/schemas/ReceivingAccount":{"id":"components/schemas/ReceivingAccount","kind":"json-schema","title":"ReceivingAccount","data":{"type":"object","description":"Receiving account details for the transfer","discriminator":{"propertyName":"type","mapping":{"BREX_CASH":"#/components/schemas/BrexCashDetails"}},"oneOf":[{"$ref":"#/components/schemas/BrexCashDetails"}]}},"components/schemas/ReceivingAccountType":{"id":"components/schemas/ReceivingAccountType","kind":"json-schema","title":"ReceivingAccountType","data":{"type":"string","enum":["BREX_CASH"]}},"components/schemas/Recipient":{"id":"components/schemas/Recipient","kind":"json-schema","title":"Recipient","data":{"required":["id","type"],"type":"object","properties":{"type":{"$ref":"#/components/schemas/RecipientType"},"id":{"type":"string"}}}},"components/schemas/RecipientType":{"id":"components/schemas/RecipientType","kind":"json-schema","title":"RecipientType","data":{"type":"string","description":[{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"Specifies the type of the recipient."},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{},"children":[],"type":"softbreak"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"ACCOUNT_ID"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":" is the ID of a Brex Business account."},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{},"children":[],"type":"softbreak"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"PAYMENT_INSTRUMENT_ID"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":" is the ID of Payment Instrument of the receiving Brex account."},"children":[],"type":"text"}],"type":"paragraph"}],"enum":["ACCOUNT_ID","PAYMENT_INSTRUMENT_ID"]}},"components/schemas/Transfer":{"id":"components/schemas/Transfer","kind":"json-schema","title":"Transfer","data":{"required":["amount","id","originating_account","payment_type","status"],"type":"object","properties":{"id":{"type":"string","description":"Unique ID associated with the transfer"},"counterparty":{"nullable":true,"allOf":[{"$ref":"#/components/schemas/CounterPartyResponse"}]},"description":{"type":"string","description":"Description of the transfer","nullable":true},"payment_type":{"$ref":"#/components/schemas/PaymentType"},"amount":{"$ref":"#/components/schemas/Money"},"process_date":{"type":"string","description":"Transaction processing date","format":"date","nullable":true},"originating_account":{"$ref":"#/components/schemas/OriginatingAccountResponse"},"status":{"$ref":"#/components/schemas/TransferStatus"},"cancellation_reason":{"nullable":true,"allOf":[{"$ref":"#/components/schemas/TransferCancellationReason"}]},"estimated_delivery_date":{"type":"string","description":"Estimated delivery date for transfer","format":"date","nullable":true},"creator_user_id":{"type":"string","description":"User ID of the transfer initiator","nullable":true},"created_at":{"type":"string","description":"Date of transfer creation","format":"date","nullable":true},"display_name":{"type":"string","description":"Human readable name for the transaction","nullable":true},"external_memo":{"maxLength":90,"type":"string","description":[{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"External memo for the transfer. "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"Payment Instructions"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":" for Wires and the "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"Entry Description"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":" for ACH payments."},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{},"children":[],"type":"softbreak"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"Must be at most 90 characters for "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"ACH"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":" and "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"WIRE"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":" transactions"},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{},"children":[],"type":"softbreak"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"and at most 40 characters for "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"CHEQUES"},"children":[],"type":"code"}],"type":"paragraph"}],"nullable":true},"is_ppro_enabled":{"type":"boolean","description":"If Principal Protection (PPRO) is enabled","nullable":true},"imad":{"type":"string","description":"IMAD (Input Message Accountability Data) of the wire","nullable":true},"omad":{"type":"string","description":"OMAD (Output Message Accountability Data) of the wire","nullable":true}}}},"components/schemas/TransferCancellationReason":{"id":"components/schemas/TransferCancellationReason","kind":"json-schema","title":"TransferCancellationReason","data":{"type":"string","description":[{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"USER_CANCELLED"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":": The transfer was canceled."},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{},"children":[],"type":"softbreak"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"INSUFFICIENT_FUNDS"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":": The transfer could not be sent due to insufficient funds."},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{},"children":[],"type":"softbreak"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"APPROVAL_DENIED"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":": The transfer was not sent because it was denied."},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{},"children":[],"type":"softbreak"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"BLOCKED_BY_POSITIVE_PAY"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":": The transfer was blocked because of the ACH debit settings."},"children":[],"type":"text"}],"type":"paragraph"}],"enum":["USER_CANCELLED","INSUFFICIENT_FUNDS","APPROVAL_DENIED","BLOCKED_BY_POSITIVE_PAY"]}},"components/schemas/TransferStatus":{"id":"components/schemas/TransferStatus","kind":"json-schema","title":"TransferStatus","data":{"type":"string","description":[{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"PROCESSING"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":": We have started to process the sending or receiving of this transaction."},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{},"children":[],"type":"softbreak"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"SCHEDULED"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":": The transaction is scheduled to enter the "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"PROCESSING"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":" status."},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{},"children":[],"type":"softbreak"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"PENDING_APPROVAL"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":": The transaction requires approval before it can enter the "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"SCHEDULED"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":" or "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"PROCESSING"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":" status."},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{},"children":[],"type":"softbreak"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"FAILED"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":": A grouping of multiple terminal states that prevented the transaction from completing."},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{},"children":[],"type":"softbreak"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"This includes a a user-cancellation, approval being denied, insufficient funds, failed verifications, etc."},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{},"children":[],"type":"softbreak"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"PROCESSED"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":": The money movement has been fully completed, which could mean money sent has arrived."},"children":[],"type":"text"}],"type":"paragraph"}],"enum":["PROCESSING","SCHEDULED","PENDING_APPROVAL","FAILED","PROCESSED"]}},"components/schemas/UpdateVendorRequest":{"id":"components/schemas/UpdateVendorRequest","kind":"json-schema","title":"UpdateVendorRequest","data":{"type":"object","properties":{"company_name":{"type":"string","description":"Name for vendor","nullable":true},"email":{"type":"string","description":"Email for vendor","format":"email","nullable":true},"phone":{"type":"string","description":"Phone number for vendor","nullable":true},"payment_accounts":{"type":"array","description":"To update payment instruments, we require the entire payload for each payment instrument that is being updated.\n","nullable":true,"items":{"$ref":"#/components/schemas/PaymentAccountRequest"}},"beneficiary_name":{"type":"string","description":"Name for the Beneficiary","nullable":true}}}},"components/schemas/VendorDetails":{"id":"components/schemas/VendorDetails","kind":"json-schema","title":"VendorDetails","data":{"type":"object","allOf":[{"$ref":"#/components/schemas/CounterParty"},{"required":["payment_instrument_id","type"],"properties":{"type":{"$ref":"#/components/schemas/CounterPartyType"},"payment_instrument_id":{"type":"string","description":[{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"ID of the vendor's payment instrument: this will dictate the payment method and the"},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{},"children":[],"type":"softbreak"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"counterparty of the transaction."},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{},"children":[],"type":"softbreak"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"The payment instrument ID is returned from the /vendors response and the type of the"},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{},"children":[],"type":"softbreak"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"instrument will dictate the payment method."},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{},"children":[],"type":"softbreak"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"eg. Passing an instrument ID of type ACH will trigger an ACH payment to the associated vendor."},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{},"children":[],"type":"softbreak"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"Since a payment instrument can be updated while retaining the same payment_instrument_id,"},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{},"children":[],"type":"softbreak"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"please make sure to double check the details."},"children":[],"type":"text"}],"type":"paragraph"}]}}}]}},"components/schemas/VendorDetailsResponse":{"id":"components/schemas/VendorDetailsResponse","kind":"json-schema","title":"VendorDetailsResponse","data":{"type":"object","allOf":[{"$ref":"#/components/schemas/CounterPartyResponse"},{"required":["id","payment_instrument_id","type"],"properties":{"type":{"$ref":"#/components/schemas/CounterPartyResponseType"},"payment_instrument_id":{"type":"string"},"id":{"type":"string","description":[{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"Vendor ID returned from "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"/vendors"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":" endpoint"},"children":[],"type":"text"}],"type":"paragraph"}]},"routing_number":{"type":"string","description":"Routing number of a bank account (or SWIFT/BIC code for international transfer).","nullable":true},"account_number":{"type":"string","description":"Account number of a bank account (or IBAN code for international transfer).","nullable":true}}}]}},"components/schemas/VendorResponse":{"id":"components/schemas/VendorResponse","kind":"json-schema","title":"VendorResponse","data":{"required":["id"],"type":"object","properties":{"id":{"type":"string","description":"Vendor ID: Can be passed to /transfers endpoint to specify counterparty.\n"},"company_name":{"type":"string","nullable":true},"email":{"type":"string","nullable":true},"phone":{"type":"string","nullable":true},"payment_accounts":{"type":"array","nullable":true,"items":{"$ref":"#/components/schemas/PaymentAccountResponse"}}}}},"schema_0":{"kind":"json-schema","data":{"type":"string","nullable":true},"id":"schema_0"},"schema_1":{"kind":"json-schema","data":{"type":"integer","format":"int32","nullable":true},"id":"schema_1"},"schema_2":{"kind":"json-schema","data":{"type":"string"},"id":"schema_2"}},"exampleStore":{},"securitySchemeStore":{"OAuth2":{"id":"OAuth2","type":"oauth2","description":"OAuth2 security scheme","flows":{"authorizationCode":{"authorizationUrl":"https://accounts-api.brex.com/oauth2/default/v1/authorize","tokenUrl":"https://accounts-api.brex.com/oauth2/default/v1/token","scopes":{"openid":"openid","offline_access":"offline access","vendors":"View and manage vendor data","vendors.readonly":"View vendor data","transfers":"View and manage transfer data","transfers.readonly":"View transfer data","incoming_transfers":"View and manage incoming transfer data","linked_accounts.readonly":"View linked accounts"}}}}},"specVersion":"3.0.1","servers":[{"url":"https://api.brex.com","description":"Production"},{"url":"https://api-staging.brex.com","description":"Staging (Note: This is not a sandbox. It will not work with customer tokens.)"}],"logo":{"imageUrl":"https://www.brex.com/logo.png","href":"https://brex.com","altText":"Brex Logo"},"specType":"openapi"},"options":{"showConsole":false,"codeSamples":{"languages":[{"lang":"curl"},{"lang":"JavaScript"},{"lang":"Node.js"},{"lang":"Python"},{"lang":"Ruby"},{"lang":"Java"}],"skipOptionalParameters":true},"mockServer":{"off":true},"disableRouter":true,"downloadUrls":[{"url":"/_bundle/openapi/payments_api.json?download"},{"url":"/_bundle/openapi/payments_api.yaml?download"}],"excludeFromSearch":false,"replayFeatures":{"graphql":false,"asyncapi":false},"specType":"openapi","markdocOptions":{"tags":{},"nodes":{},"components":{}},"metadata":{"title":"Payments API","description":"\nThe payments API allows you to initiate and manage payments and vendors from your Brex business accounts.\n"}},"baseSlug":"/openapi/payments_api","routesMapping":{}}