API Documentation
Offramps API
Offramps API
  • Guides
    • Getting Started
  • API Reference
    • Authentication
    • Agreements
      • Agreements#Show
    • Users
      • Users#Create
      • Users#Show
      • Users#Index
    • KYC Sessions
      • KYC#Create
    • Payment Details
      • PaymentDetails#Create
      • PaymentDetails#Index
      • PaymentDetails#Show
      • PaymentDetails#Validate
      • PaymentDetails#Deactivate
      • Rail Availability
      • Required Fields For Local Currency Payouts
      • Required Fields For Swift Currency Payouts
    • Quotes
      • How to make a payment
      • Quotes#Create
      • Quotes#Show
      • Quotes#Execute
      • Quote#Rate
    • Offramps
      • Offramps#Index
      • Offramps#Create
      • Offramps#Update
      • Offramps#Show
      • Limitations
    • Webhooks
      • KYC Webhook
      • Offramp Webhook
      • Payment Detail Webhook
      • Webhook Signatures
    • Errors
    • Conversions
      • Conversions#Create
  • Sandbox Only
    • Sandbox Special Moves
Powered by GitBook
On this page
  1. API Reference
  2. Offramps

Offramps#Update

Update an Offramp's reference

Please note the following information.

  • The only attribute that can be updated is the reference.

  • USD local offramps cannot be modified.

  • Offramps cannot be updated once they have moved beyond the “initiated” status.

Example Request

curl https://{{base_url}}/users/USER_ID/quotes/QUOTE_ID/offramps/OFFRAMP_ID \
-X PATCH \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-type: application/json" \
-d '{
    "offramp": {
        "reference": "new_reference"
    }
}' 

Endpoint Information

Create Offramps

PATCH https://{{base_url}}/users/:user_id/quotes/:quote_id/offramps/:offramp_id

Path Parameters

Name
Type
Description

user_id*

UUID

The ID for the user who is making the payment.

quote_id*

UUID

The ID for the Quote which these payments relate to.

offramp_id*

UUID

The ID for the Offramp which these payments relate to.

Request Body

Name
Type
Description

reference

String

The reference message you would like on the fiat payment (only works on EUR routes).

{ 
   "offramp": {
         id: "074cb3e4-1f56-4916-8024-ecbf6f805b90",
         user_id: "a25a4274-8f50-4579-b476-8f35b297d4ad",
         payment_detail_id: "fa898aec-519c-46be-9b4c-e76ef4ff99d9",
         quote_id: "1e99d470-dcc2-46f4-970c-bc35a9e13b84",
         status: "initiated",
         status_message: null,
         destination_amount: 19000,
         destination_currency: "usd",
         reference: "new_reference",
         rails: "swift",
         rate: 0.92820,
         fee: 125,
         supporting_document: {
            submitted_url: "https://web3accounting.com/invoices/in_378949x.pdf",
            status: "not_checked"
         },
         "metadata": {
             "custom_key": "custom_value"
         }
      }
}
PreviousOfframps#CreateNextOfframps#Show

Last updated 4 months ago