Workforce Payments APIs
  • Introduction
  • Real-Life Scenarios
  • API Reference
    • API Essentials
    • Payment Status
    • Environments
    • Authentication API
    • Wallets Management
      • Open A Wallet
      • Get Wallets List
      • Get Wallet Details
      • Get Wallet Statements
    • Groups Management
      • Create A Payment Group
      • Update A Payment Group
      • Get Payment Group Details
      • Get Payment Groups List
      • Lock Payment Group
      • UnLock Payment Group
      • Delete Payment Group
    • Beneficiaries Management
      • Get Schema Information
      • Create A Beneficiary
      • Update Beneficiary Details
      • Get Beneficiary Details
      • Get Beneficiaries List
      • Bulk Import Beneficiary
      • Bulk Import Beneficiary Status
      • Bulk Validate Beneficiary
    • Payment Management
      • Create Payment Instruction
      • Update Payment Instructions
      • Get Payment Details
      • Get Payments List
      • Approve Payment Instructions
      • UnApprove Payment Instructions
      • Execute Payment Instructions
      • Bulk Import Payment Instructions
      • Bulk Import Payment Instructions Status
    • Webhooks Notifications
Powered by GitBook

© All rights reserved to papaya global 2024

On this page
  1. API Reference
  2. Groups Management

Create A Payment Group

The API is utilized to create a payment group within the account. A group is generated with a given wallet. Once created, you can oversee the group’s payment requests based on various criteria such as time, location, business unit, etc.

POST /payments/groups

Body Parameters Request

Name
Type
Description
Required

description

string

A short description of the group

wallet

string

The Wallet ID linked to this group.

Yes

name

string

A label to to identify the group.

Yes

user_tags

object

A set of k/v pairs to assign to the group.

Body parameters Response

Name
Type
Description

description

string

Extended description of group

id

string

Unique id of group

locked

boolean

When locked, no new actions can be made

name

string

Visual name of group

type

string

entity type (group)

user_tags

object

A set of k/v pairs of user tags to assign to this group

wallet

string

id of wallet this group is associated with

Request Example

POST /payments/groups
{
    "description": "Demo Group",
    "wallet": "f6b2776d-53f4-404e-a690-c3766a91d43a",
    "name": "February USD cycle",
    "user_tags":{
      "cycle":"2024-02"
    }
  }

Response

{
  "type": "group",
  "id": "b48c3f38-9278-41a3-b101-444f20fce982",
  "description": "Demo Group",
  "wallet": "f6b2776d-53f4-404e-a690-c3766a91d43a",
  "name": "February USD cycle",
  "user_tags": {
    "cycle":"2024-02"
  }
}
{
  "error": "bad_request",
  "description": "Validation errors: {\"description\":\"EmanIntEUR\",\"org_id\":\"202000\",\"name\":\"Feb... at root failed with \"Missing property wallet\"",
  "error_code": 400
}
PreviousGroups ManagementNextUpdate A Payment Group

Last updated 10 months ago