Alfred Integration Documentation
  • 🌐Welcome
    • Getting Started
    • alfred Overview
      • Authentication
      • Core Concepts & Use Cases
      • System Resource Names
      • Error & Status Codes
      • Required Documents for KYC by Country
      • Example Workflow Execution
    • Postman Collection
  • 🔌PENNY API General Integration
    • Penny API - Operations
      • Account Information + Get uuid Initial Transaction
      • KYC Lite + Get Access Token
      • KYC Full
      • Payment Method + Get Process Token
      • Add Bank or Update Bank
      • Submit Transaction
      • {URL-Customer-Webhook}
      • Approval Invoice (Pay Out Only)
    • Penny API - Reports
      • Consult Quote
      • Consult Payment Wallet
      • Consult All Invoices
      • Consult Individual Invoice by Invoice ID
      • Consult transactions by User's Wallet
  • 🖱️Stellar Blockchain Integration
    • Stellar API Integration - Operations
      • Auth (Get)
      • Auth (Post)
      • (Stellar) My Info - Get Account info & uuid Initial Transaction
      • KYC Lite + Get Access Token
      • KYC Full
      • Payment Method + Get Process Token
      • Add Bank or Update Bank
      • Submit Transaction
      • {URL-Customer-Webhook}
      • Approval Invoice (Pay Out Only)
    • Stellar API Integration - Reports
      • Consult All Invoices
      • Consult Payment Wallet
      • Consult Individual Invoice by Invoice ID
      • Consult transactions by User's Wallet
  • 🎒Educational Content
    • Step-by-Step Videos
      • Getting Started
      • API Integration
      • Pay Out Requirements by Country
        • 🇲🇽Mexico
        • 🇦🇷Argentina
        • 🇧🇷Brazil
Powered by GitBook
On this page
  1. PENNY API General Integration
  2. Penny API - Operations

Approval Invoice (Pay Out Only)

Approval or Cancel Invoice

Description:

This endpoint is tailored to approve or cancel an invoice. It offers a streamlined process to validate transactions and ensure that all financial operations align with the intended actions.

Mode:

PUT

Node:

/third-party-service/invoice/{id}

Note** Replace {id} with the appropriate invoice identifier.

PUT /third-party-service/invoice/{id}

Approval or Cancel Invoice

Headers

Name
Type
Description

API-Key*

String

Your API key for authentication.

API-Secret*

String

Your API secret for enhanced security.

Request Body

Name
Type
Description

"status"*

"approved"

This can also be "cancel" based on the desired action.

// 
{
    "statusCode": 202,
    "data": true,
    "message": "update Invoice"
}

Considerations:

Ensure that the appropriate status value ("approved" or "cancel") is set based on the intended operation. The invoicehash is a security measure, a hash or a secret token associated with the invoice. Ensure it's provided correctly to authenticate and validate the operation.

If transaction is a "Pay-out" invoice is approved by customer and sent via webhook.

If transaction is a "Pay-in" invoice is approved by alfred.

Last updated 1 year ago

🔌