primeflow

Get the fee detail for a payment

API endpoint: Get the fee detail for a payment

GET
/v1/payments/fees/{id}

Authorization

X-Reevit-Key<token>

API key for server-to-server authentication

In: header

Path Parameters

idRequiredstring

Header Parameters

X-Org-IdRequiredstring

Organization identifier for multi-tenancy

Response Body

Fee detail

TypeScript Definitions

Use the response body type in TypeScript.

payment_idstring
connection_idstring
providerstring
methodstring
amountinteger
currencystring
fee_amountinteger
fee_currencystring
net_amountinteger
created_atstring
Format: "date-time"
updated_atstring
Format: "date-time"

Bad Request

TypeScript Definitions

Use the response body type in TypeScript.

errorRequiredstring

Error type/category

codeRequiredstring

Machine-readable error code

messageRequiredstring

Human-readable error message

detailsobject

Optional field-level error details

Not Found

TypeScript Definitions

Use the response body type in TypeScript.

errorRequiredstring

Error type/category

codeRequiredstring

Machine-readable error code

messageRequiredstring

Human-readable error message

detailsobject

Optional field-level error details

Internal Server Error

TypeScript Definitions

Use the response body type in TypeScript.

errorRequiredstring

Error type/category

codeRequiredstring

Machine-readable error code

messageRequiredstring

Human-readable error message

detailsobject

Optional field-level error details

curl -X GET "http://localhost:8081/v1/payments/fees/string" \
  -H "X-Org-Id: string" \
  -H "X-Reevit-Key: <token>"
fetch("http://localhost:8081/v1/payments/fees/string", {
  headers: {
    "X-Org-Id": "string",
    "X-Reevit-Key": "<token>"
  }
})
package main

import (
  "fmt"
  "net/http"
  "io/ioutil"
)

func main() {
  url := "http://localhost:8081/v1/payments/fees/string"

  req, _ := http.NewRequest("GET", url, nil)
  req.Header.Add("X-Org-Id", "string")
  req.Header.Add("X-Reevit-Key", "<token>")
  res, _ := http.DefaultClient.Do(req)
  defer res.Body.Close()
  body, _ := ioutil.ReadAll(res.Body)

  fmt.Println(res)
  fmt.Println(string(body))
}
import requests

url = "http://localhost:8081/v1/payments/fees/string"

response = requests.request("GET", url, headers = {
  "X-Org-Id": "string",
  "X-Reevit-Key": "<token>"
})

print(response.text)
{
  "payment_id": "string",
  "connection_id": "string",
  "provider": "string",
  "method": "string",
  "amount": 0,
  "currency": "string",
  "fee_amount": 0,
  "fee_currency": "string",
  "net_amount": 0,
  "created_at": "2019-08-24T14:15:22Z",
  "updated_at": "2019-08-24T14:15:22Z"
}
{
  "error": "invalid_request",
  "code": "email_required",
  "message": "email is required",
  "details": {
    "metric": "workflow_executions",
    "used": "2000",
    "limit": "2000",
    "reset": "2025-01-01T00:00:00Z"
  }
}
{
  "error": "invalid_request",
  "code": "email_required",
  "message": "email is required",
  "details": {
    "metric": "workflow_executions",
    "used": "2000",
    "limit": "2000",
    "reset": "2025-01-01T00:00:00Z"
  }
}
{
  "error": "invalid_request",
  "code": "email_required",
  "message": "email is required",
  "details": {
    "metric": "workflow_executions",
    "used": "2000",
    "limit": "2000",
    "reset": "2025-01-01T00:00:00Z"
  }
}