Show Contractor Invoice pay-in details
Shows how the payment that collects a Contractor Invoice is paid in, and where to send it.
bank_accounts carries Remote's receiving accounts while status is awaiting_payment. It is null once the funds are in flight or received, while the payment sits on a compliance hold (blocked) or is partly paid (partially_paid, where amount_due overstates what remains and Remote follows up with the balance directly), and whenever Remote has no account to publish.
pay_in_method says whether a transfer is yours to send at all: Remote collects direct_debit, card and prefunding_credit payments itself, and a transfer would pay the same invoices twice. That holds after a failed or disputed collection too: the payment reads awaiting_payment with its method unchanged until the company retries it in Remote, so a failed debit is not an invitation to wire, even when accounts are present. Accounts can differ from one payment to the next, so read them before every transfer rather than storing them.
The endpoint answers 404 only while no payment stands behind the invoice. A passing database fault surfaces as a 504 or a 500; retry either.
Authentication
This endpoint accepts any one of the following token types:
- Company-scoped access token (OAuth2AuthorizationCode) — obtained by a company manager through the Authorization Code flow or the Refresh Token flow. See Authentication for partners.
- Company-scoped access token (assertion) (OAuth2CompanyManagerAssertion) — obtained through the urn:ietf:params:oauth:grant-type:jwt-bearer grant for a company manager. See OAuth Assertion.
- Customer API token (CustomerAPIToken) — generated by the customer on their Integration Settings page, with the scopes they choose there. See Authorization for customers.
Scopes
Any one of the scopes in a token type's row is enough. all:read and all:write work too.
| Token type | Category | Read only Scope | Write only Scope (read access implicit) |
|---|---|---|---|
| Company-scoped access token | View pay-in bank details (pay_in_details) | View pay-in details (pay_in_details:read) | - |
| Company-scoped access token (assertion) | View pay-in bank details (pay_in_details) | View pay-in details (pay_in_details:read) | - |
| Customer API token | View pay-in bank details (pay_in_details) | View pay-in details (pay_in_details:read) | - |
Request
- Base URLhttps://gateway.remote.com
- URLhttps://gateway.remote.com/v1/contractor-invoices/{id}/pay-in-details
- Auth
- OAuth 2Authorization code: /auth/oauth2/authorizeToken URL: /auth/oauth2/token scopes: https://gateway.remote.com/company.manage
- or OAuth 2Authorization code: /auth/oauth2/authorizeToken URL: /auth/oauth2/token scopes: pay_in_details:read
- or OAuth 2Authorization code: /auth/oauth2/authorizeToken URL: /auth/oauth2/token scopes: all:read
- or OAuth 2Authorization code: /auth/oauth2/authorizeToken URL: /auth/oauth2/token scopes: all:write
- or OAuth 2Client credentialsToken URL: /auth/oauth2/token scopes: pay_in_details:read
- or OAuth 2Client credentialsToken URL: /auth/oauth2/token scopes: all:read
- or OAuth 2Client credentialsToken URL: /auth/oauth2/token scopes: all:write
- or HTTP bearer
Path parameters
A unique identifier in UUID v4 format.
Contractor invoice identifier
Response
Pay-in details
Example response
{
"data": {
"pay_in_details": {
"amount_due": 350000,
"bank_accounts": [
{
"account_holder": "Remote Technology Services, Inc",
"account_number": "70123456789",
"ach_routing_number": "021000089",
"address": {
"city": "New York",
"country": "United States",
"name": "Community Federal Savings Bank",
"postal_code": "10013",
"state": "NY",
"street": "388 Greenwich Street"
},
"bank_code": null,
"bank_name": "Citibank N.A.",
"branch_code": null,
"branch_name": null,
"bsb_code": null,
"charge": "OUR",
"clearing_code": null,
"cnaps_code": null,
"iban": null,
"ifsc": null,
"institution_number": null,
"intermediary_bank_code": null,
"sort_code": null,
"swift": "CITIUS33",
"transit_number": null,
"wire_routing_number": "021000089"
}
],
"currency": "USD",
"due_date": "2024-06-15",
"pay_in_method": "bank_transfer",
"reference": "TR0000000042",
"status": "awaiting_payment"
}
}
}Changes
No recorded changes to this operation across all 1 revision of this API.