Trustcrow API v1
  • Introduction
  • Authentication
  • Errors
  • API Reference
    • User Management
      • Create a user
      • Fetch users
      • Fetch user's wallet
    • Transaction
      • Create a transaction
      • Fetch transactions
      • Fetch milestones
      • Fund milestone
      • Deliver item
      • Accept item delivery
      • Reject item delivery
      • Approve returned item
      • Disapprove returned item
    • Dispute Management
      • Create a dispute
      • Fetch dispute
      • Add dispute amount
      • Approve dispute amount
      • Disapprove dispute amount
    • Disbursement
    • Other tools
      • Bank verification
      • File Upload
Powered by GitBook
On this page

Was this helpful?

  1. API Reference
  2. Transaction

Fund milestone

PreviousFetch milestonesNextDeliver item

Last updated 1 year ago

Was this helpful?

Milestones must be funded before the seller can deliver the product or service. When the funding endpoint it called, the user is redirected to a payment gateway to fund via available payment methods such as bank transfer.

To fund a specific milestone

POST {{api_url}}/v1/milestones/{milestone_id}/fund

Query Parameters

Name
Type
Description

milestone_id*

string

specify the milestone id

Headers

Name
Type
Description

Authorization*

string

your Trustcrow API keys to authorize customers

Request Body

Name
Type
Description

buyer_id*

string

input the buyer's ID

{
    "status": true,
    "message": "Procees with the link to fund your milestone",
    "data": {
        "checkout_url": "https://sandbox.sdk.monnify.com/checkout/MNFY|39|20231226122300|001736"
    }
}

Test account URL for bank transfer

For test card details, you can use the following;

Pan: 4111111111111111, cvv:1234, expiryYear:2024 and expiryMonth:10

Only when a milestone has been funded does the buyer protection begins, and the seller is instructed to go ahead and ship the products or service.

To verify the funding status of a milestone, fetch the corresponding transaction and ensure that the response;

  • "is_milestone_funded" is set to true

  • "total_amount_funded" is equal to the amount funded after deducting escrow fee

  • milestone status changes to "MILESTONE_IN_PROGRESS."

https://websim.sdk.monnify.com/?#/bankingapp