Add an external account
Adds a bank account or mobile wallet that a customer pays out to. Use `GET /v1/external-accounts/institutions` for `institution_id`, and `POST /v1/external-accounts/verify` to check the holder's name first.
Adds a bank account or mobile wallet that a customer pays out to. Use GET /v1/external-accounts/institutions for institution_id, and POST /v1/external-accounts/verify to check the holder's name first.
bank_account and mobile_money return 200 with status active. swift, sepa, ach_wire and fps return 202 with status pending while setup runs. Get the account until it is active or setup_failed, or wait for the external_account.active or external_account.setup_failed webhook.
A duplicate (same customer, holder name, and account and bank) is a 400 with code ERROR_CODE_DUPLICATE_PAYEE and the existing payee_id. Deleted and failed accounts count as duplicates.
Headers
Idempotency-KeyBody parameters
Pick the tab for the kind of payee, and for a local bank account, the tab for its currency. Each tab lists the fields that kind uses and marks the ones Gravv requires when you save the payee. Unknown fields are ignored. Only the first problem found is reported.
A bank account in Nigeria, Ghana, Kenya, the WAEMU zone (XOF) or the CEMAC zone (XAF). The response is 200 with status active. Send account_number and the bank's institution_id. You do not need a routing number.
payee_typeLeave it out to detect the type from the fields you send.
Possible values: bank_account
customer_idcurrencyThree-letter ISO 4217 code of the currency paid out
Possible values: NGN, GHS, KES, XOF, XAF
account_name' - . , & / ( ) only, starting with a letter, with no digits. It comes back in upper case, and may be replaced by the name the bank holds.account_numberinstitution_idid from GET /v1/external-accounts/institutions. Gravv saves a payee without one, but cannot pay it.institution_country_iso_codeaccount_owner_typeindividual for a person, business for a company
Possible values: individual, business
addressswift, sepa, ach_wire and fps, and for some banks and payout corridors.address_line1address_line2house_building_numbercitystatepostal_codecountryinternal_account_idA bank account in Morocco. The response is 200 with status active. institution_id is required: it names the bank the payout goes to.
payee_typeLeave it out to detect the type from the fields you send.
Possible values: bank_account
customer_idcurrencyThree-letter ISO 4217 code of the currency paid out
Possible values: MAD
account_name' - . , & / ( ) only, starting with a letter, with no digits. It comes back in upper case, and may be replaced by the name the bank holds.account_numberibanaccount_number_type is iban. Gravv checks it with mod 97.institution_idid from GET /v1/external-accounts/institutions. The bank must be able to receive MAD payouts.institution_country_iso_codeaccount_owner_typeindividual for a person, business for a company
Possible values: individual, business
addressaddress_line1address_line2house_building_numbercitystatepostal_codecountryinternal_account_idA bank account in Mexico, paid to its CLABE. The response is 200 with status active. Always send payee_type. Gravv checks the CURP or RFC when you save the payee, and the other payout details when you send money.
payee_typeSend it for a Mexican CLABE paid in MXN, which is otherwise read as ach_wire.
Possible values: bank_account
customer_idcurrencyThree-letter ISO 4217 code of the currency paid out
Possible values: MXN
account_name' - . , & / ( ) only, starting with a letter, with no digits. It comes back in upper case, and may be replaced by the name the bank holds.account_numberinstitution_idid from GET /v1/external-accounts/institutionsinstitution_country_iso_codenational_idnational_id_type. Needed to pay this payee.national_id_typeA Mexican payee takes CURP or RFC only.
Possible values: CURP, RFC
account_owner_typeindividual for a person, business for a company
Possible values: individual, business
addressaddress_line1, city and country.address_line1address_line2house_building_numbercitystatepostal_codecountryinternal_account_idA PIX key or bank account in Brazil. The response is 200 with status active. Gravv checks the identity fields when you save the payee, and the payout details when you send money.
payee_typeLeave it out to detect the type from the fields you send.
Possible values: bank_account
customer_idcurrencyThree-letter ISO 4217 code of the currency paid out
Possible values: BRL
account_name' - . , & / ( ) only, starting with a letter, with no digits. It comes back in upper case, and may be replaced by the name the bank holds.pix_keyaccount_numberinstitution_idid from GET /v1/external-accounts/institutionsnational_idnational_id_type. Gravv checks its check digits. Needed to pay this payee.national_id_typeCPF, CNPJaccount_owner_typeindividual for a person, business for a company
Possible values: individual, business
addressaddress_line1, city and country.address_line1address_line2house_building_numbercitystatepostal_codecountryinternal_account_idA bank account in Colombia. The response is 200 with status active. Gravv checks the payout details when you send money, not when you save the payee.
payee_typeLeave it out to detect the type from the fields you send.
Possible values: bank_account
customer_idcurrencyThree-letter ISO 4217 code of the currency paid out
Possible values: COP
account_name' - . , & / ( ) only, starting with a letter, with no digits. It comes back in upper case, and may be replaced by the name the bank holds.account_numberinstitution_idid from GET /v1/external-accounts/institutions. Needed to pay this payee.bank_account_typeNeeded to pay this payee
Possible values: checking, savings
national_idnational_id_type. Needed to pay this payee.national_id_typeCC, NITaccount_owner_typeindividual for a person, business for a company
Possible values: individual, business
addressaddress_line1, city and country.address_line1address_line2house_building_numbercitystatepostal_codecountryinternal_account_idA bank account in India, named by its IFSC. The response is 200 with status active. Gravv checks the payout details when you send money, not when you save the payee.
payee_typeLeave it out to detect the type from the fields you send.
Possible values: bank_account
customer_idcurrencyThree-letter ISO 4217 code of the currency paid out
Possible values: INR
account_name' - . , & / ( ) only, starting with a letter, with no digits. It comes back in upper case, and may be replaced by the name the bank holds.account_numberrouting_numberaccount_owner_typeindividual for a person, business for a company
Possible values: individual, business
addressaddress_line1, city and country.address_line1address_line2house_building_numbercitystatepostal_codecountryinternal_account_idA bank account in Hong Kong. The response is 200 with status active. Gravv checks the payout details when you send money, not when you save the payee.
payee_typeLeave it out to detect the type from the fields you send.
Possible values: bank_account
customer_idcurrencyThree-letter ISO 4217 code of the currency paid out
Possible values: HKD
account_name' - . , & / ( ) only, starting with a letter, with no digits. It comes back in upper case, and may be replaced by the name the bank holds.account_numberinstitution_idid from GET /v1/external-accounts/institutions. Needed to pay this payee.account_owner_typeindividual for a person, business for a company
Possible values: individual, business
addressaddress_line1, city and country.address_line1address_line2house_building_numbercitystatepostal_codecountryinternal_account_idA local bank account in a currency without its own tab, such as PKR or EGP. The response is 200 with status active. Send account_number, or iban where the bank uses one, and institution_id to name the bank. Some banks need address.
payee_typeLeave it out to detect the type from the fields you send.
Possible values: bank_account
customer_idcurrencyaccount_name' - . , & / ( ) only, starting with a letter, with no digits. It comes back in upper case, and may be replaced by the name the bank holds.account_numberibanaccount_number_type is iban. Gravv checks it with mod 97.institution_idid from GET /v1/external-accounts/institutionsinstitution_country_iso_codebank_nameinstitution_idbank_account_typechecking, savingsaccount_owner_typeindividual for a person, business for a company
Possible values: individual, business
addressswift, sepa, ach_wire and fps, and for some banks and payout corridors.address_line1address_line2house_building_numbercitystatepostal_codecountryinternal_account_idA mobile money wallet, paid to its phone number. The response is 200 with status active. Send institution_id for the operator.
payee_typeLeave it out to detect the type from the fields you send.
Possible values: mobile_money
customer_idcurrencyaccount_name' - . , & / ( ) only, starting with a letter, with no digits. It comes back in upper case, and may be replaced by the name the bank holds.phone_numberinstitution_idid from GET /v1/external-accounts/institutions, for the operatorinstitution_country_iso_codeaccount_owner_typeindividual for a person, business for a company
Possible values: individual, business
internal_account_idA US bank account paid in USD on one rail: ach, wire or rtp. The response is 202 with status pending while setup runs. To pay one account on two rails, save it once for each rail.
payee_typeLeave it out to detect the type from the fields you send.
Possible values: ach_wire
customer_idcurrencyThree-letter ISO 4217 code of the currency paid out
Possible values: USD
account_name' - . , & / ( ) only, starting with a letter, with no digits. It comes back in upper case, and may be replaced by the name the bank holds.account_numberrouting_numberpayment_railThere is no default. wire needs a routing number that takes wires, and rtp one that takes instant payments. Check it first with GET /v1/external-accounts/routing-numbers/{routing_number}/wire or /rtp.
Possible values: ach, wire, rtp
bank_account_typeSend it for an ach payee. Setup can fail without it.
Possible values: checking, savings
account_owner_typeindividual for a person, business for a company
Possible values: individual, business
bank_nameinstitution_name.addressaddress_line1 is 4 to 34 characters, and the other fields are at most 35. Gravv checks postal_code against country.address_line1address_line2house_building_numbercitystatepostal_codecountryinternal_account_idA bank abroad paid in USD by SWIFT. The response is 202 with status pending while setup runs. Look the bank up with GET /v1/external-accounts/institutions?swift_code=<BIC> and copy its prefill fields. One error lists all the missing bank fields.
payee_typeLeave it out to detect the type from the fields you send.
Possible values: swift
customer_idcurrencyThree-letter ISO 4217 code of the currency paid out
Possible values: USD
account_name' - . , & / ( ) only, starting with a letter, with no digits. It comes back in upper case, and may be replaced by the name the bank holds.account_numberiban.ibanbicinstitution_id and bank_name for you.institution_idid from GET /v1/external-accounts/institutions. Gravv fills it in from bic. If the BIC is listed in more than one country, send institution_id or bank_country.bank_namebicaccount_owner_typeindividual for a person, business for a company
Possible values: individual, business
bank_address_line_1bank_citybank_statebank_postal_codebank_countrybank_countryintermediary_financial_institutionintermediary_bank_address2 is optional.intermediary_bank_routing_numberintermediary_bank_address1intermediary_bank_address2intermediary_bank_cityintermediary_bank_stateintermediary_bank_zip_codeintermediary_bank_countryaddressswift payee needs address_line1, city, state and country. address_line1 is 4 to 34 characters, and the other fields are at most 35.address_line1address_line2house_building_numbercitystatepostal_codecountryinternal_account_idA euro account in a SEPA country, paid by IBAN. The response is 202 with status pending while setup runs.
payee_typeLeave it out to detect the type from the fields you send.
Possible values: sepa
customer_idcurrencyThree-letter ISO 4217 code of the currency paid out
Possible values: EUR
account_name' - . , & / ( ) only, starting with a letter, with no digits. It comes back in upper case, and may be replaced by the name the bank holds.ibanbicaccount_owner_typeindividual for a person, business for a company
Possible values: individual, business
bank_nameinstitution_name.addressaddress_line1 is 4 to 34 characters, and the other fields are at most 35. Gravv checks postal_code against country.address_line1address_line2house_building_numbercitystatepostal_codecountryinternal_account_idA UK account paid in GBP by Faster Payments, with a sort code and account number. The response is 202 with status pending while setup runs.
payee_typeLeave it out to detect the type from the fields you send.
Possible values: fps
customer_idcurrencyThree-letter ISO 4217 code of the currency paid out
Possible values: GBP
account_name' - . , & / ( ) only, starting with a letter, with no digits. It comes back in upper case, and may be replaced by the name the bank holds.account_numberrouting_numberaccount_owner_typeindividual for a person, business for a company
Possible values: individual, business
bank_nameinstitution_name.addressaddress_line1 is 4 to 34 characters, and the other fields are at most 35. Gravv checks postal_code against country.address_line1address_line2house_building_numbercitystatepostal_codecountryinternal_account_idResponse
Returns 200 OK. Added and active
dataidinstitution_idpayee_typeHow the account is paid. bank_account and mobile_money are active at once. swift, sepa, ach_wire and fps need a setup step and start as pending.
Possible values: bank_account, mobile_money, swift, sepa, ach_wire, fps
account_numberinstitution_typebank, mobile_money, swift, swift_intermediaryinstitution_nameaccount_nameibanbiccustomer_idcurrencyinstitution_country_iso_codeaddressswift, sepa, ach_wire and fps, and for some banks and payout corridors.address_line1address_line2house_building_numbercitystatepostal_codecountryaccount_owner_typeindividual, businessrouting_numberstatuspending while setup runs, then active (ready for transfers) or setup_failed (read error_message, then correct it with PATCH).
Possible values: pending, active, setup_failed, archived, deleted
date_createdphone_numbererror_messagenational_id_typenational_id_maskederrorErrors
| Status | Meaning |
|---|---|
| 200 | Added and active |
| 202 | Added and pending while setup runs |
| 400 | Invalid or missing field, a duplicate, or a failed bank check. Correct it and send a new Idempotency-Key. |