Skip to main content

Partner Management API

The Partner Management API allows you to manage partnerships by sending requests, approving, ignoring, or deleting them. This document provides details on how to send a partnership request and manage partner actions.

Endpoint

POST https://core.grdd.net/api/partner

Request Payload

To send a partnership request, use the following payload structure:
{
  "griddid": "requester griddid",
  "partnerid": "partner griddid",
  "action": "send"
}

Possible Actions

The API supports the following actions:
  • approve: Approve a partnership request.
  • ignore: Ignore a partnership request.
  • delete: Delete a partnership request.
  • check: Check the status of a partnership request.
  • update: Update partnership details.
  • send: Send a new partnership request.
  • remove_invite: Remove an invitation.

Response

A successful request will return a confirmation of the action taken. Handle responses appropriately based on the action performed.

Error Handling

Ensure to handle errors such as invalid griddid or partnerid, and unsupported actions. The API will return appropriate error messages for invalid requests.

Best Practices

  • Validate Inputs: Ensure that all required fields are correctly filled before sending a request.
  • Handle Responses: Implement logic to handle different responses based on the action taken.
  • Secure Data: Use secure methods to store and transmit sensitive data like griddid and partnerid.
For more information on managing partnerships, refer to the GNet Connect API documentation.
I