Skip to main content
PUT
/
v3
/
credits
/
{credit}
Edit Credit
curl --request PUT \
  --url http://localhost/api/v3/credits/{credit} \
  --header 'Content-Type: application/json' \
  --data '
{
  "issued_at": "2023-11-07T05:31:56Z",
  "expires_at": "2023-11-07T05:31:56Z",
  "released_at": "2023-11-07T05:31:56Z",
  "recipient_first_name": "<string>",
  "recipient_email": "jsmith@example.com",
  "message": "<string>",
  "profile_id": "<string>",
  "creator_profile_id": "<string>",
  "extended_at": "2023-11-07T05:31:56Z",
  "value_initial": 1,
  "value_remaining": 1,
  "external_id": "<string>",
  "external_namespace": "<string>",
  "credit_number": "<string>",
  "security_code": "<string>",
  "location_id": 123,
  "location_external_id": "<string>",
  "location_external_code": "<string>",
  "locked": true,
  "lock_expires_at": "2023-11-07T05:31:56Z",
  "is_imported": true,
  "meta": [
    "<string>"
  ]
}
'
{
  "data": {
    "id": 123,
    "profile_id": "<string>",
    "creator_profile_id": "<string>",
    "staff_id": "<string>",
    "location_id": 123,
    "name": "<string>",
    "credit_definition_id": 123,
    "timezone": "<string>",
    "recipient_first_name": "<string>",
    "recipient_email": "<string>",
    "message": "<string>",
    "issued_at": "<string>",
    "expires_at": "<string>",
    "released_at": "<string>",
    "extended_at": "<string>",
    "value_initial": "<string>",
    "value_remaining": "<string>",
    "external_id": "<string>",
    "external_namespace": "<string>",
    "credit_number": "<string>",
    "security_code": "<string>",
    "source_id": 123,
    "source_type": "<string>",
    "locked": true,
    "lock_expires_at": "<string>",
    "has_notified_issue": true,
    "has_notified_expiry": true,
    "has_notified_release": true,
    "has_notified_remind": true,
    "has_notified_extend": true,
    "meta": [
      "<unknown>"
    ],
    "is_imported": true,
    "is_system_generated": true,
    "created_at": "<string>",
    "updated_at": "<string>",
    "definition": {
      "id": 123,
      "name": "<string>",
      "handle": "<string>",
      "region_id": 123,
      "region": {
        "id": 123,
        "name": "<string>",
        "handle": "<string>"
      },
      "timezone": "<string>",
      "period": 123,
      "period_type": "<string>",
      "absolute_expiry": "<string>",
      "release_period": 123,
      "release_period_type": "<string>",
      "release_period_absolute_expiry": "<string>",
      "is_published": true,
      "is_archived": true,
      "icon": "<string>",
      "image_url": "<string>",
      "primary_colour": "<string>",
      "secondary_colour": "<string>",
      "description": "<string>",
      "internal_notes": "<string>",
      "short_description": "<string>",
      "long_description": "<string>",
      "terms_conditions": "<string>",
      "earn_instructions": "<string>",
      "meta": [
        "<unknown>"
      ],
      "type": "<string>",
      "value": 123,
      "max_value": 123,
      "currency_id": 123,
      "currency": "<string>",
      "require_creator": true,
      "require_assigned": true,
      "is_extendable": true,
      "is_assignable": true,
      "is_releasable": true,
      "is_reassignable": true,
      "require_security_code": true,
      "extend_days": 123,
      "credit_number_range_type": "<string>",
      "credit_number_range_start": "<string>",
      "credit_number_range_end": "<string>",
      "credit_number_length": 123,
      "security_code_type": "<string>",
      "use_custom_numbers": true,
      "notify_schedule_offset": 123,
      "issue_target_id": 123,
      "expiry_target_id": 123,
      "release_target_id": 123,
      "remind_target_id": 123,
      "extend_target_id": 123,
      "notify_issue_offset_days": 123,
      "notify_issue_offset_hour": 123,
      "notify_remind_offset_days": 123,
      "notify_remind_offset_hour": 123,
      "tags": [
        "<string>"
      ],
      "created_at": "<string>",
      "updated_at": "<string>",
      "custom_fields": [
        {
          "name": "<string>",
          "handle": "<string>",
          "namespace": "<string>",
          "value": "<string>",
          "type": "<string>",
          "custom_fieldable_type": "<string>",
          "custom_fieldable_id": "<string>",
          "created_at": "<string>",
          "updated_at": "<string>",
          "version": "<string>",
          "is_index": "<string>"
        }
      ]
    }
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.omneo.io/llms.txt

Use this file to discover all available pages before exploring further.

Path Parameters

credit
integer
required

The credit ID

Body

application/json
issued_at
string<date-time> | null
expires_at
string<date-time> | null
released_at
string<date-time> | null
recipient_first_name
string | null
recipient_email
string<email> | null
message
string | null
profile_id
string | null
creator_profile_id
string | null
extended_at
string<date-time> | null
value_initial
number
Required range: x >= 0
value_remaining
number | null
Required range: x >= 0
external_id
string | null
external_namespace
string | null
credit_number
string | null
security_code
string | null
location_id
integer | null
location_external_id
string | null
location_external_code
string | null
locked
boolean
lock_expires_at
string<date-time> | null
is_imported
boolean | null
meta
string[] | null

Response

Credit

data
Credit · object
required